Regex Playground
Interactive environment to create, test, and debug regular expressions with live highlighting
//
Find all matches rather than stopping after the first match
Ignore case when matching
^ and $ match start/end of line in addition to start/end of string
Allows . to match newline characters
Treat pattern as a sequence of Unicode code points
Matches only from the index indicated by lastIndex property
Enter a test string and pattern to see results
No matches found
About Regular Expressions
Regular expressions (regex) are powerful patterns used to match character combinations in strings. They are widely used for text search, validation, and manipulation tasks.
- Test your patterns against sample text with real-time feedback
- Visualize matches with highlighting for better understanding
- Copy patterns for use in your code with snippets for different languages
- Learn regex through examples and the comprehensive cheatsheet