Test regular expressions with real-time match highlighting, capture groups, and a built-in cheat sheet.
Enter your regular expression in the pattern field (without the surrounding slashes — they're just visual). Toggle flags with the buttons on the right. Paste your test string below and matches highlight in real time.
^ — start of string · $ — end of string · . — any character · \d — digit · \w — word character · \s — whitespace
[abc] — character class · (group) — capture group · a|b — or · a* — zero or more · a+ — one or more · a? — optional