in reply to pattern to match certain numbers only?

Check for the 0 as last digit prior to decimal
if (/[1-9]0\.0/) { process the line }
You'll need to expand this if you need to cope with hundreds and bigger. It also assumes there is a decimal point and a single digit after decimal.

Replies are listed 'Best First'.
Re^2: pattern to match certain numbers only?
by graff (Chancellor) on Feb 21, 2006 at 06:17 UTC
    This might provide a little more flexibility, and a slightly tighter matching:
    if ( /=\"\d*?0\.\0+\"/ ) { # should match "0.0", "10.000", "120.0", etc... }