simple regex matching too much! :(
Posted: Wed Oct 26, 2005 3:45 pm
Hi I made this simple regex pattern to match URLs so I can convert them to links.
But when I put it to work on this text
Chris
Code: Select all
(http://[0-9a-z/\.?_&-=;+])+It matchesCopy and paste this link, its a 40 minute Concert,<br />
<br />
http://www2.xfm.co.uk/staticweb/avplaye ... layhigh<br />
<br />
its pure <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> rock!<br />
I dont see how its matching the <br on the end?? If anybody can helf it would be brilliant.
Chris