Hi,
<([a-zA-Z]+) ?.*?>\s*</\1>
However, while this pattern finds some empty tags, if I have
nested tags (empty or full), it finds the entire tag string, which
is not correct.
Any thoughts on what I'm missing?
don't have BBEdit at hand to test it, but I think the problem is, if
you have opening tags without attributes
<([a-zA-Z]+) ?.*?>\s*</\1>
^
this dot |
will match the closing bracket of the opening tag. Try this:
<([a-zA-Z]+) ?[^>]*?>\s*</\1>
hope, it helps
Roland
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>