Regex Tester
Test regular expressions in real-time and see matching results instantly.
About Regex Tester
Regular expressions (regex) are powerful patterns used to match character combinations in strings.
• Pattern input: Enter a regex pattern to see matching results in real-time.
• Flags: Combine g (global), i (case-insensitive), and m (multiline) flags.
• Capture groups: Use parentheses () to capture sub-matches and inspect group results.
• Highlighting: Matched portions are visually highlighted in the test string.
Common Regex Patterns
FAQ
What does the g flag do?
The g (global) flag finds all matches in the string rather than stopping after the first match. Without it, only the first match is returned.
What is the i flag for?
The i (case-insensitive) flag makes the pattern match regardless of letter case. For example, /hello/i matches "Hello", "HELLO", and "hello".
What are capture groups?
Capture groups are portions of a pattern enclosed in parentheses (). They allow you to extract specific parts of a match separately, which is useful for parsing structured text like dates, emails, or URLs.
Related Tools
String Escape / Unescape
Escape and unescape strings for JSON, HTML, URL, SQL, and more.
Case Converter
Convert text to UPPER, lower, camelCase, snake_case, Title Case, and more.
URL Encoder/Decoder
Encode and decode URL strings.
Word / Character Counter
Count characters, words, sentences, and bytes in real-time.
SQL Formatter
Format and beautify SQL queries with proper indentation. Supports keyword case conversion and minification.