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:
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\-\.\?\,\'\/\\\+&%\$#_]*)?