phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Quick STR_REPLACE question


 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
JLA
Board Member



Joined: 30 Apr 2009

Posts: 451
Location: U.S.A


flag
PostPosted: Wed May 06, 2009 5:16 pm 
Post subject: Quick STR_REPLACE question

Got it - Thanks - please delete topic
_________________
http://www.jlaforums.com
Back to top
Ptirhiik
Board Member



Joined: 19 Nov 2008

Posts: 114


flag
PostPosted: Wed May 06, 2009 6:08 pm 
Post subject: Re: Quick STR_REPLACE question

Quote:
$res = preg_replace('#^http://thisurl\.com/stuff/(.*)$#is', 'http://whatever/&foo=$1&bar=whatelse', $orig);
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 451
Location: U.S.A


flag
PostPosted: Wed May 06, 2009 6:38 pm 
Post subject: Re: Quick STR_REPLACE question

Ptirhiik wrote:
Quote:
$res = preg_replace('#^http://thisurl\.com/stuff/(.*)$#is', 'http://whatever/&foo=$1&bar=whatelse', $orig);


Thanks - that did it.

_________________
http://www.jlaforums.com
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 656
Location: North West UK


flag
PostPosted: Thu May 07, 2009 5:14 am 
Post subject: Re: Quick STR_REPLACE question

JLA wrote:
Got it - Thanks - please delete topic


If topics are deleted when the OP has an answer how do others learn from them? icon_rolleyes.gif

Jim
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Thu May 07, 2009 6:37 am 
Post subject: Re: Quick STR_REPLACE question

Same question from me!
Why deleting?

BTW JLA: what has happened to your forums viewcounter? Looks a bit like it has lost a lot of viewcounts.
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 451
Location: U.S.A


flag
PostPosted: Thu May 07, 2009 11:06 am 
Post subject: Re: Quick STR_REPLACE question

Jim_UK wrote:
JLA wrote:
Got it - Thanks - please delete topic


If topics are deleted when the OP has an answer how do others learn from them? icon_rolleyes.gif

Jim


Sorry - it was an unrelated issue. If there is an interest - send a PM and I'll tell you what it was about.

_________________
http://www.jlaforums.com
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Thu May 07, 2009 1:23 pm 
Post subject: Re: Quick STR_REPLACE question

JLA wrote:
send a PM and I'll tell you what it was about.

Nice joke! icon_lol.gif
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 656
Location: North West UK


flag
PostPosted: Thu May 07, 2009 1:58 pm 
Post subject: Re: Quick STR_REPLACE question

Holger wrote:
JLA wrote:
send a PM and I'll tell you what it was about.

Nice joke! icon_lol.gif

icon_lol.gif icon_lol.gif icon_lol.gif

Actually quite amusing that the first post in the topic is quote "unrelated" to what follows.

Jim
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 451
Location: U.S.A


flag
PostPosted: Thu May 28, 2009 12:50 am 
Post subject: Re: Quick STR_REPLACE question

Sorry for the confusion that caused!
_________________
http://www.jlaforums.com
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 4 Hours
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0594 seconds using 16 queries. (SQL 0.0132 Parse 0.0008 Other 0.0454)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo