-2

What will be the regular expression to find a numerical string starting with a number other than 0 and having a length of 13 or more. This numerical string would be a substring inside a bigger alphanumeric string.

user1955215
  • 669
  • 2
  • 10
  • 24

1 Answers1

-2
/[1-9][0-9]{12,}/

You're looking for a number from 1 to 9, then for 12 or more numbers from 0 to 9.

Brother Woodrow
  • 5,467
  • 3
  • 14
  • 19