Regex To Match A String That Contains At least 1 Number And 1 Character

Category: Strings

A Regular Expression to match a string containing at least 1 number and 1 character. Typically used to validate complex passwords or usernames.



  • RegexPattern1
  • 1RegexPattern
  • Regex1Pattern


  • RegexPattern1%
  • RegexPattern

See Also:

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.