Post Reply 
Matching decimal/fraction ranges
Feb. 25, 2012, 10:16 PM
Post: #6
RE: Matching decimal/fraction ranges
Problem with [#m:m] is that it requires integers.
Problem with decimals is that .3 is larger than .200

Try something like

Code:
[Patterns]
Name = "Test 0.75 to 1.25 to 13px"
Active = FALSE
Limit = 256
Match = "font-size:("
        "0+.(7[5-9]|[8-9])[0-9]+"
        "|"
        "1.([0-1]|2(^[6-9]))[0-9]+"
        "|"
        "1.+) em"
Replace = "font-size:13px"

HTH
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Matching decimal/fraction ranges - zoltan - Feb. 25, 2012, 12:30 AM
RE: Matching decimal/fraction ranges - sbk - Feb. 25, 2012, 09:49 AM
RE: Matching decimal/fraction ranges - sbk - Feb. 25, 2012, 04:49 PM
RE: Matching decimal/fraction ranges - sbk - Feb. 25, 2012, 05:34 PM
RE: Matching decimal/fraction ranges - JJoe - Feb. 25, 2012 10:16 PM
RE: Matching decimal/fraction ranges - zoltan - Feb. 26, 2012, 03:40 AM

Forum Jump: