Post Reply 
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]
Name = "TXT: add title select sites {sh8an}"
Active = TRUE
URL = "$TYPE(htm)$LST(TitleAdd)"
Limit = 254
Match = "(<(div|tr)\1 \0</$TST(\1)>)\9"
        "$TST(sTXTmod=§\3§\4§\5$TST(\0=*($TST(\3)*($TST(\4)) \8($TST(\5)))*))"
Replace = "\9\r\n"
          "<script language="javascript">\r\n"
          "    $SET(uRepl=document.title$TST(uRepl=*).replace(/$GET(uRepl)/g, ""))"
          "    document.title = $GET(uRepl) + '\8';\r\n"
          "</script>\r\n"
          "$SET(uRepl=)"
matches
Code:
<div class="tableborder">
        <div class='maintitle'><img src='/forum/style_images/nav_m.gif' border='0'  alt='&gt;' width='8' height='8' />&nbsp;<b>Image Grabbers</b>, download links</div>
while the first div should be skipped.
Any suggestions?

Update:
Code:
(<(div|tr)\1 \0</$TST(\1)>)\9(^$TST(\0=*$TST(\1)*))
$TST(sTXTmod=§\3§\4§\5$TST(\0=*($TST(\3)*($TST(\4)) \8($TST(\5)))*))
does the trick. but is this the right way or doing it?
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: