Write regex patterns, set flags, and see matches highlighted in real time.
Regular expressions (regex) are powerful patterns used to search, match, and manipulate text. Our Regex Tester lets you write a pattern, choose flags, and instantly see all matches highlighted directly in your test string. The match list shows each match with its position index.
Common patterns include \d+ for numbers, \w+ for words, [a-z]+ for lowercase letters, ^ for start of line, and $ for end of line. Use parentheses for groups and | for alternation. Backslashes must be escaped in certain contexts.