Regular Expression E-Mail URL IPv4 Date (YYYY-MM-DD) ZIP code (DE) Phone (DE) HTML-Tag Hex-Farbe
Testtext
Result with Highlighting
The quick brown fox jumps over the lazy dog.
E-Mail: user@example.com
URL: https://www.example.com/path?q=1
Datum: 2024-05-21
IPv4: 192.168.1.1
Telefon: +49 170 1234567 Characters
.Any character (except \n) \dDigit [0-9] \DNo digit \wWord character [a-zA-Z0-9_] \WNo word character \sWhitespace (space, tab, …) \SNo whitespace \nZeilenumbruch \tTabulator
Quantoren
*0 oder mehr (gierig) +1 oder mehr (gierig) ?0 oder 1 (optional) {n}Exactly n-m times {n,}At least n-m times {n,m}Between n and m times *? +? ??Non-greedy (lazy)
Anchors & Boundaries
^Start of line $End of line \bWortgrenze \BNo word boundary
Gruppen
(abc)Fanggruppe (?:abc)Non-capturing group (?<name>…)Named group (?=abc)Positive lookahead (?!abc)Negative lookahead (?<=abc)Positive lookbehind (?<!abc)Negative lookbehind a|bOr (a or b)
Character classes
[abc]One of: a, b, c [^abc]None of: a, b, c [a-z]Lowercase letters a-z [A-Z]Uppercase letters A-Z [0-9]Digits 0-9