in reply to
Re: Eugh, regex :(
in thread Eugh, regex :(
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?