in reply to Re: Match all Non-0 and Letters
in thread Match all Non-0 and Letters
... this was just to explain the error in your code ... /0{7}\d/ is much simpler and better.
I understand that the intended purpose of the code example is very limited, but I think it's very important to point out that the
$D1 !~ /0+/
test ("if there is not at least one '0' in the first 7 digits") is also a fundamental error.
Give a man a fish: <%-{-{-{-<
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Match all Non-0 and Letters
by Laurent_R (Canon) on Jun 24, 2017 at 17:58 UTC | |
by AnomalousMonk (Archbishop) on Jun 24, 2017 at 18:44 UTC |