Back to Tools & Utilities

Developer Utilities

Regex Tester &
Cheat Sheet

Test regular expressions live with match highlighting, capture group analysis, and replacement preview. Includes an interactive cheat sheet and 10+ prebuilt examples. Everything runs locally in your browser.

//
g
0 matchesPattern: 46 chInput: 118 chIntermediate

Live Match Highlighting

Type a pattern above to see highlights...

No matches found.

100% Client-Side Processing

Patterns evaluated in your browser JS engineTest strings never sent to any serverNo data storage or loggingNo analytics on your regex patterns

What Is Regex?

Regular expressions (regex or regexp) are sequences of characters that define search patterns. They are a fundamental tool in programming for string searching, data validation, text extraction, and find-and-replace operations. Every major language — JavaScript, Python, Java, PHP, Go, Ruby — has native regex support.

A regex pattern like \d3-\d4 matches a phone segment with 3 digits, a hyphen, and 4 digits. Patterns can range from simple literals to complex expressions with lookaheads, named groups, and Unicode properties.

Regex Flags Reference

FlagNameEffect
gGlobalFind all matches
iIgnore CaseCase insensitive
mMultiline^ $ match line ends
sDot AllDot matches newline
uUnicodeFull Unicode support
yStickyMatch from lastIndex

Frequently Asked Questions