I am currently using the code:
$output = eregi_replace("\\[link='(http://|https://)([a-zA-Z./_-]+)'\\]","<a href='\\1\\2'>",$output);
This works with no problems. It changes:
[link='http://www.hotmail.com']
to:
<a href='http://www.hotmail.com'>
My problem is trying to get:
[link="http://www.hotmail.com"]
to do the same. At the moment, I can not make any regular expression change this into the <a href=''> format. I have tried using:
$output = eregi_replace('\[link="(http://|https://)([a-zA-Z./_-]+)"\]',"<a href='\\1\\2'>",$output);
but this does not work.
Ok, call me fussy, but I want my users to be able to use [link="http://www."] or [link='http://www.']
Editing? What editing? Oh, fixed the mangling that vBulletin had done to the regexps.