Posted by Jim on 10/29/07 22:14
> Well, taking a guess here, but 'http://' is not preceded by 'http', so it
> will match in $2. Lookaheads/behinds without a literal match is often not
> a very nice way to go.
Now I'm really confused, I thought that was the idea of the lookbehind
assertion, oh well.
> I'd use the preg_replace_callback or the /e
> modifier to let a function examine the match and act apropriately.
I'll give that route a try.
Thanks for your help Rik.
Jim.
[Back to original message]
|