http://qs321.pair.com?node_id=746730


in reply to Re^2: Redundant regex ([0-9]{2} | [0-9] {2, 4})?
in thread Redundant regex ([0-9]{2} | [0-9] {2, 4})?

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}/.

Replies are listed 'Best First'.