I have a regex that's matching urls and converting them into html links. If the url is already part of a link I don't want to to match, for example:
http://stackoverflow.com/questions/ask
Should match, but:
<a href="http://stackoverflow.com/questions/ask">Stackoverflow</a>
Shouldn't match
How can I create a regex to do this?