-2

This should match

1233232985 John Doe

This should not match

John Doe 47437363

What I have attempted. ^\d{10-12}

Gary
  • 29
  • 6

1 Answers1

0

Maybe this will help

"^[0-9]{10}$|^[0-9]{12}$"