Limiting container tab scope
|
Apr. 14, 2011, 01:06 PM
(This post was last modified: Apr. 14, 2011 01:10 PM by sh8an.)
Post: #1
|
|||
|
|||
Limiting container tab scope
Hi all. i've been playing around with filters again and ran into a problem with limiting the match to just one container tag.
Code: [Patterns] Code: <div class="tableborder"> Any suggestions? Update: Code: (<(div|tr)\1 \0</$TST(\1)>)\9(^$TST(\0=*$TST(\1)*)) |
|||
Apr. 14, 2011, 03:24 PM
Post: #2
|
|||
|
|||
RE: Limiting container tab scope
What about:
Code: (<(div|tr)\1(^*<$TST(\1)) \0</$TST(\1)>)\9 |
|||
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: 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: (<( After $TST, I might try something like Code: (<( This last example should be fastest. I think. HTH Edit: Removed \s added some parentheses. Should work now. Sorry. |
|||
Apr. 15, 2011, 04:15 PM
Post: #4
|
|||
|
|||
RE: Limiting container tab scope
(Apr. 14, 2011 03:24 PM)whenever Wrote: What about:didn't match. (Apr. 15, 2011 02:53 AM)JJoe Wrote: After $TST, I might try something like....did'nt quite get but will try to figure it out. my problem was that <div*><div*></div> matched (not <*div></div><div*>), while the match should have been limited to only one div container (ie <div*></div>) changed the update again to be more stricter and match only tags Code: (<(div|tr)\1 \0</$TST(\1)>)\9(^$TST(\0=*<$TST(\1)*)) |
|||
« Next Oldest | Next Newest »
|