List Info

Thread: Search URL's in HTML - but NOT in tags




Search URL's in HTML - but NOT in tags
user name
2006-09-19 09:49:41
Rick, you are right: (negative) lookbehinds are not
supported in
classic ASP.
The regex whithout the negative lookbehind does work:
(?:^|\b)(((http://|www\.))([\w\.]+)([,:%#&\/?=\w+
.-]+))(?:\b|$)|(\w+[-\w\._%\d/\#]+)\b

Can anyone help me to adapt this, so it does the two-pass
test?
1. first: the regex above (matches all the URL's).
2. if the first test is true, the regex has to check if the
URL is not
the value of a href-attribute.

Thanks for your help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )