Spaces removed, /[0-9]{2}/ does match a subset of what /[0-9]{2,4}/ matches.
I'm sure what he wanted was just /[0-9]{2,4}/.
In reply to Re^3: Redundant regex ([0-9]{2} | [0-9] {2, 4})?
by ikegami
in thread Redundant regex ([0-9]{2} | [0-9] {2, 4})?
by Popcorn Dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |