-1

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
  • 34,386
  • 9
  • 72
  • 100
Patdundee
  • 163
  • 2
  • 9

1 Answers1

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