|Syntactic Confectionery Delight|
Re^2: Eugh, regex :(by ultranerds (Friar)
|on Mar 25, 2009 at 09:36 UTC||Need Help??|
Thats all the code you should need.
$post_message is just a text string, with the example I gave - and then it runs this:
$post_message =~ s%\Q[URL=\E([\?\%\:\/a-zA-Z0-9_\-\.]+)\Q][img]\E([\?\%\:\/a-zA-Z0-9_\-\.]+)\Q[/img][/URL]\E%gix;
(which is the line thats giving the error)
Maybe its something to do with the regex?