Hi guys, I hope everyone is well. Regex. Not my strong point. Any pointers appreciated. [code]$temp = preg_replace("/[a-zA-Z]+[:\/\/]+[A-Za-z0-9\-_]+\\.+[A-Za-z0-9\.\/%&=\?\-_]+/ie", "'<a href=\"\\0\" target=\"_blank\">'.urlreduce('\\0').'</a><div class=\"new_window\"> (Opens in new window) </div>\n'", $temp);[/code] The above code works fine, for an autolinking feature. But, I want it to ignore any URLs preceded by [code]image=[/code] I thought I could simply add a condition to the start of my match case, like so: [code]$temp = preg_replace("/[^image=][a-zA-Z]+[:\/\/]+[A-Za-z0-9\-_]+\\.+[A-Za-z0-9\.\/%&=\?\-_]+/ie", "'<a href=\"\\0\" target=\"_blank\">'.urlreduce('\\0').'</a><div class=\"new_window\"> (Opens in new window) </div>\n'", $temp);[/code] It doesn't work though - still matches on URLs preceded by image=. Cheers for your help, G.