Reply to thread

Try this regex


This regex seems to work:


[code]<tr>(([^<]*)|(<(?!tr)))+</tr>[/code]


How it works is, it states that between the <tr> and </tr> tags, there can be any number of characters which are not <, and if there is a <, it cannot followed by tr. This inner pattern must be repeated one or more times (which will also match empty tags).


It will need some modification to cope with more elaborate opening <tr> tags.


Good luck :cool:


Back
Top