Post Reply 
Limiting container tab scope
Apr. 15, 2011, 02:53 AM (This post was last modified: Apr. 15, 2011 03:53 PM by JJoe.)
Post: #3
RE: Limiting container tab scope
(Apr. 14, 2011 03:24 PM)whenever Wrote:  What about:

Code:
(<(div|tr)\1(^*<$TST(\1)) \0</$TST(\1)>)\9

It fails to match <div></div><div>. It is a good idea and I use it but I think it needs more code.

Before $TST, I might try something like

Code:
(<(
((div*</div) >&&(^*<div*)*)
|
((tr*</tr) >&&(^*<tr*)*))
)\9

After $TST, I might try something like

Code:
(<(
(div*<(/+div)\1)+{1}$TST(\1=/div) >
|
(tr*<(/+tr)\1)+{1}$TST(\1=/tr) >)
)\9

This last example should be fastest.

I think.

HTH

Edit: Removed \s added some parentheses. Should work now. Sorry.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Limiting container tab scope - sh8an - Apr. 14, 2011, 01:06 PM
RE: Limiting container tab scope - whenever - Apr. 14, 2011, 03:24 PM
RE: Limiting container tab scope - JJoe - Apr. 15, 2011 02:53 AM
RE: Limiting container tab scope - sh8an - Apr. 15, 2011, 04:15 PM

Forum Jump: