Retrieve text outside tags

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Macky

Retrieve text outside tags

Post by Macky »

Could anybody please give some insight as to how to achieve finding any text which is not inside an HTML tag. I would like to find every occurance of the text specified between tags.

Thanks
User avatar
mcm
Posts: 359
Joined: Sat Jun 10, 2006 2:36 am

Post by mcm »

Well if you prefix and suffix your filter with this, it should hopefully work. Although it won't capture any text if it exists before the very first tag or after the very last tag in an html file.

/^>[^<]* [FILTER] .*<$/

This was just derived from the information from this site and I haven't tested it:
http://developer.mozilla.org/en/docs/Co ... cts:RegExp
Locked