-2

Can anyone help with this one please

I need a regex pattern to check the first 2 numbers match either 01 or 02 or 03 or 07 only

ndnenkov
  • 35,425
  • 9
  • 72
  • 104
Patdundee
  • 161
  • 2
  • 10

1 Answers1

3
^0[1237]
  • ^ - the start of the string
  • 0 - a zero
  • [1237] - a character set which matches one of the listed
ndnenkov
  • 35,425
  • 9
  • 72
  • 104