Forum Moderators: open
I'm trying to create a regex pattern that matches URLs (I got that) but not specially formatted URLs. Right now I can parse URLs and turn them into HTML links on the page with the URL as the text. I want to be able to insert links with custom text such as
[ url=http://www.webmasterworld.com]Cool site for webmasters[/ url].
So far I have failed, because the regex that catches regular links is also partially parsing the above format with ugly results.
Any pointers? What regex do the message boards use for this purpose?
Thanks!