This could be useful for checking your html. It uses grouping with a back reference.
Find html start tags:
Search | "<"{AD}+ * ">" |
We can put two markers (@1 and @2) in there to pick out the tag name itself:
Search | "<"@1{AD}+@2 * ">" |
And then we use those markers as a "back reference" to search for the matching end tag:
Search | "<"@1{AD}+@2 * ">" * ("</" @12">") |
We only used a single * to search forward in the line so his will only find tags that start and end on a single line. Use ** to search for tags like <div> which span several lines.
Of course you can seach for specific tags. Just replace the {AD}+ with, for instance "table" (with the parentheses) to find tables.
Search | "<"@1"table"@2 * ">" ** ("</" @12">") |
Was this page helpful? Please email me and/or rate this page: