Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Save & Share

  • Save Regex
    ctrl+s
  • Update Regex
    ctrl+⇧+s

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python 2.7
  • Golang (RE2)

Function

  • Match
  • Substitution
  • List
  • Unit Tests
/
[^a-zA-Zäöü\s-]
/
igu
Match a single character not present in the list below
[^a-zA-Zäöü\s-]
a-z a single character in the range between a (index 97) and z (index 122) (case insensitive)
A-Z a single character in the range between A (index 65) and Z (index 90) (case insensitive)
äöü matches a single character in the list äöü (case insensitive)
\s matches any whitespace character (equal to [\r\n\t\f\v \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff])
- matches the character - literally (case insensitive)
This hyphen is treated literally, which might be confusing for others. Consider escaping it or placing at the start or end of the class!
Global pattern flags
i modifier: insensitive. Case insensitive match (ignores case of [a-zA-Z])
g modifier: global. All matches (don't return after first match)
u modifier: unicode. Enable all unicode features and interpret all unicode escape sequences as such
Your regular expression does not match the subject string.

Regular Expression
No Match

/
/
igu

Test String