06-17-2010, 03:07 PM
I am writing some code to parse URLs that are in the format of "left-bracket url=http://www.google.com]Google[/url right-bracket. I am trying to convert this form into the standard HTML <a></a> style. The problem I am running into is if there are multiple hyperlinks in the message. What would be the most efficient way of going through the message and replacing all links in the PHPBB format with the HTML URL format?