Regex Tester
Test and debug regular expressions with live matching.
//g
Regex flags explained
- g (Global) - Find all matches, not just the first
- i (Case Insensitive) - Match regardless of case
- m (Multiline) - ^ and $ match line boundaries
- s (Dotall) - . matches newline characters
Common regex patterns
\d- Any digit\w- Any word character\s- Any whitespace.- Any character (except newline)*- Zero or more+- One or more?- Zero or one