![]() |
|
Limiting container tab scope - Printable Version +- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums) +-- Forum: Proxomitron Config Sets (/forumdisplay.php?fid=43) +--- Forum: Sidki (/forumdisplay.php?fid=44) +--- Thread: Limiting container tab scope (/showthread.php?tid=1745) |
Limiting container tab scope - sh8an - Apr. 14, 2011 01:06 PM 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)*))RE: Limiting container tab scope - whenever - Apr. 14, 2011 03:24 PM What about: Code: (<(div|tr)\1(^*<$TST(\1)) \0</$TST(\1)>)\9RE: Limiting container tab scope - JJoe - Apr. 15, 2011 02:53 AM (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. RE: Limiting container tab scope - sh8an - Apr. 15, 2011 04:15 PM (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)*)) |