in reply to Re^3: Another Pattern Matching Question
in thread Another Pattern Matching Question

If you just want to match 0,1, or 2 and not "|", then your character class should be [012], not [0|1|2].