Regex tester
Pattern
Input
51925120851209567
 // contains only numbers and is valid
B0031Y4M8S
 // contains combination of numbers and letters and is valid as well
ASDFFDSSDFGG
Options
Replacement
Click the context tab to see replacements.
2 matches found in about 2 milliseconds.
IndexPositionMatched String
0051925120851209567
159B0031Y4M8S
51925120851209567
​ // contains only numbers and is valid
​B0031Y4M8S
​ // contains combination of numbers and letters and is valid as well
​ASDFFDSSDFGG
  1. empty string

  2. // contains only numbers and is valid

  3. // contains combination of numbers and letters and is valid as well
    ASDFFDSSDFGG