Click to See Complete Forum and Search --> : help with regular expression


TinaBanana
03-19-2007, 03:56 PM
im trying to find all internal links on my site (does not beging with http)

ive been able to write a regular expression that finds almost all of them.
i have 3 expressions used together with 2 or

im able to find all my url except the ones that have no quotes and beging with a /

like this
<a href=/folder/link_e.html target=_blank>links</a>

here is what im using as one of the 3 expressions. the other 2 find url with single and double quotes.

href=[^"'][^http]\S+(_e.html)

it will find this one tho
<a href=folder/link_e.html target=_blank>links</a>

kyle969
04-04-2007, 10:44 AM
Tina,
What about: href=["|'|\][^http].*+(_e.html)['|"]?\s

Beanis
04-04-2007, 07:15 PM
It would be easier to find the external ones and then "not" the result.