I\'m trying to use the range pattern [01-12] in regex to match two digit mm, but this doesn\'t work as expected.
[01-12]
As polygenelubricants says yours would look for 0|1-1|2 rather than what you wish for, due to the fact that character classes (things in []) match characters rather than strings.