Regex Tester

Test regular expressions with live highlighting, capture groups, and replace mode. Everything runs in your browser — no data is sent anywhere.

/ /
Test patterns exactly as they run in Bubble.io, the no-code app builder
0 matches

Match Details

Enter a pattern and test string to see match details.

Quick Reference

Character Classes

.
Any character (except newline)
\d
Digit [0-9]
\w
Word char [a-zA-Z0-9_]
\s
Whitespace
\D \W \S
Negated versions
[abc]
Character set
[^abc]
Negated set
[a-z]
Range

Quantifiers

*
0 or more
+
1 or more
?
0 or 1
{3}
Exactly 3
{3,}
3 or more
{3,5}
Between 3 and 5
*?
Lazy (non-greedy)

Anchors & Groups

^
Start of string/line
$
End of string/line
\b
Word boundary
(abc)
Capture group
(?:abc)
Non-capturing group
(?<name>abc)
Named group
a|b
Alternation (or)
(?=abc)
Positive lookahead

Flags

g
Global (all matches)
i
Case insensitive
m
Multiline
s
Dotall (. matches \n)
u
Unicode

How to Use Regular Expressions

Regular expressions (regex) are patterns used to match character combinations in strings. They're essential for text processing, input validation, data extraction, and search-and-replace operations across every programming language.

Common Patterns

Replace Mode

Enable replace mode to test search-and-replace. Use $1, $2, etc. to reference capture groups. Named groups use $<name>. The dollar sign $& inserts the entire match.