Post Reply 
Counting Run-On's
May. 24, 2013, 12:41 AM (This post was last modified: May. 24, 2013 02:12 AM by JJoe.)
Post: #2
RE: Counting Run-On's
Something like

Code:
[Patterns]
Name = "Example 1"
Active = FALSE
Limit = 2048
Match = "([.-])+{3}"
        "(([.-]$TST(($GET(n)+)=$LST(Count)|*)$SET(n=$GET(i)))+{1,2045})\1"
Replace = "....\1"
          "[+$GET(n)]\r\n"
          "$SET(n=)$SET(i=)"

If you don't need n

Code:
[Patterns]
Name = "Example 2"
Active = FALSE
Limit = 2048
Match = "([.-])+{3}"
        "(([.-]$TST(($GET(i)+)=$LST(Count)|*))+{1,2045})\1"
Replace = "....\1"
          "[+$GET(i)]\r\n"
          "$SET(i=)"

Note that $LST(Count) uses \0.

HTH

Edit:Limit=2048
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Counting Run-On's - ProxRocks - May. 23, 2013, 11:48 PM
RE: Counting Run-On's - JJoe - May. 24, 2013 12:41 AM
RE: Counting Run-On's - ProxRocks - May. 24, 2013, 01:59 AM
RE: Counting Run-On's - JJoe - May. 24, 2013, 02:11 AM
RE: Counting Run-On's - ProxRocks - May. 24, 2013, 11:07 AM
RE: Counting Run-On's - JJoe - May. 24, 2013, 09:46 PM
RE: Counting Run-On's - ProxRocks - May. 24, 2013, 11:02 PM
RE: Counting Run-On's - JJoe - May. 25, 2013, 02:44 AM
RE: Counting Run-On's - ProxRocks - May. 25, 2013, 03:00 AM

Forum Jump: