Regex To Match Strings Which Contain Numbers

A regular expression to match any strings which contain numbers.

/\w*\d\w*/g

Matches:

  • 123456
  • Regex123
  • 123Regex
  • 123Regex Regex123

Non-matches:

See Also:

Regex Is Copied!