I have a question regarding regular expressions.
On of the strings I want to proceed:
[text]The easiest way to get this going is to use this link: PatchWork[up]3d[/up].[/text]
I used this expression before to replace, which was working, but now, since there is the [up]...[/up] statement in it, I get a problem:
Code: Select all
echo preg_replace("%\[url=([^\]]*)\]([^/[]*)\[/url\]%", "<a href=\"$1\">$2</a>");
Code: Select all
echo preg_replace("%\[url=([^\]]*)\]([^/[/url\]]*)\[/url\]%", "<a href=\"$1\">$2</a>");
See you and thank you very much in advance
*Fuchur*