Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Reg Ex

Name: Anonymons 2009-10-25 16:23

im trying to make a regular expression that will capture URLs, but not URLs encased in HTML Tags (anchor, image, ect).

this is what i got so far. it'll find the URL (copypasta from MSDN) but its still capturing HTML elements:


(?!((href|url|src)=[""']?))(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/
?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?

Name: Anonymous 2009-10-25 16:47

(?!((href|url|src)=[""']?))
(?<!((href|url|src)=[""']?))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List