(?is)<tr[^>]*>(?><tr[^>]*>(?<o>)|</tr>(?<-o>)|(?:(?!</?tr\b).)*)*(?(o)(?!))</tr>
变型--01
@H_502_4@(?is)<div[^>]*>(?><div[^>]*>(?<o>)|</div>(?<-o>)|(?:(?!</?div\b).)*)*(?(o)(?!))</div>例子 <div[^>]*>转化 <div class="rb"> @H_502_4@<div class="rb">(?><div[^>]*>(?<o>)|</div>(?<-o>)|(?:(?!</?div\b).)*)*(?(o)(?!))</div>