Regular Expression

/ /
Valid RegEx

Test Text

Live Results

Total Matches
0
Unique Matches
0
Groups Found
0
Execution Time
0ms

Text with Matches Highlighted

Match Details

🔍 Regular Expression Tips

📋 Basic Syntax

  • . (dot): Matches any single character except newline
  • * (asterisk): Matches 0 or more of the preceding character
  • + (plus): Matches 1 or more of the preceding character
  • ? (question): Matches 0 or 1 of the preceding character
  • ^ (caret): Matches the start of a line
  • $ (dollar): Matches the end of a line

🎯 Character Classes

  • [abc]: Matches any character in the set
  • [^abc]: Matches any character NOT in the set
  • [a-z]: Matches any lowercase letter
  • [A-Z]: Matches any uppercase letter
  • [0-9]: Matches any digit
  • \d: Matches any digit (same as [0-9])
  • \w: Matches any word character [a-zA-Z0-9_]
  • \s: Matches any whitespace character

🚀 Advanced Features

  • (group): Creates a capture group
  • (?:group): Creates a non-capturing group
  • {n}: Matches exactly n occurrences
  • {n,m}: Matches between n and m occurrences
  • |: OR operator (alternation)
  • \b: Word boundary
  • (?=...): Positive lookahead
  • (?!...): Negative lookahead