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>
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>