I’m maintaining a program that (among other things) reads a users input and, if necessary, inserts the appropriate
tag. Currently it uses the following regex:
The main problem is that this regex will place tags around all urls. This creates problems if the user has already hand coded the tags in their input, such as
Can any Monks suggest a regular expression that will insert href tags around naked urls, but leave urls within tags alone?