I'm going to assume that you want to search for one particular tag (like td ). Here is a search that will return the (in this case) 3rd TD tag in the code:
<yoursearch>
| rex max_match=0 "(?i)(?P<tagcontents><(td)[^>]*>[\s\S]*?<\/\2[^>]*>)"
| eval wanted=mvindex(tagcontents,3)
You can change the tag ( td ) and the index ( 3 ) and it should find the tag as long as the tags are paired like this:
<tag....>....</tag>
If they aren't paired that way, it won't. Do you need that functionality?
... View more