Pase bbcode with exceptions

pachel

New Member
\[code\]$pattern = "/\[url\=(.*)\](.*)\[\/url\]/i";\[/code\]My pattern above rewrites bbcode to html but I want to exclude links from my own domain. Is it possible to modify the regex so it will work for all external links but not for links with my own domain?
 
Back
Top