Author |
Message |
JLA Board Member
Joined: 30 Apr 2009
Posts: 451 Location: U.S.A
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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?
Jim |
|
Back to top |
|
|
Holger Board Member
Joined: 19 Jan 2009
Posts: 509 Location: Hanover
|
Posted: 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
|
Posted: 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?
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
|
Posted: 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! |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: 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! |
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
|
Posted: 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 |
|
|
|