q1w2e3r4t7
Active member
- Joined
- Nov 15, 2005
- Messages
- 30
Hey guys, having some trouble getting a exclude regex function to work.
tried to search as much as i can, and have seen that regex isnt ideal for HTML, however im hoping to get around this by using exclude function.
i want to get the most child html rows, and was hoping to use something like this:
<tr.*(?!<tr).*</tr>
my thinking for this is that it will catch any <tr> ... </tr>, without </tr> in the middle, being the most child row.
However, i cant get it working, can anyone help please.
it can be tested on the following,
<tr> 1 <tr> 2 </tr> 3 </tr>
i would hope to have <tr> 2 </tr> as the result
thanks.
tried to search as much as i can, and have seen that regex isnt ideal for HTML, however im hoping to get around this by using exclude function.
i want to get the most child html rows, and was hoping to use something like this:
<tr.*(?!<tr).*</tr>
my thinking for this is that it will catch any <tr> ... </tr>, without </tr> in the middle, being the most child row.
However, i cant get it working, can anyone help please.
it can be tested on the following,
<tr> 1 <tr> 2 </tr> 3 </tr>
i would hope to have <tr> 2 </tr> as the result
thanks.