-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
  • 733
  • 2
  • 11
  • 31

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
  • 6,092
  • 3
  • 18
  • 20