All tools
Free tool
Regex Tester
Test and debug regular expressions in real-time. See matches highlighted, view match details, and test find-replace operations.
//
Flags:
Common patterns
Quick reference
. Any character\d Digit [0-9]\w Word char\s Whitespace^ Start of string$ End of string* 0 or more+ 1 or more? 0 or 1{n} Exactly n[abc] Character class() Capture groupWhat are Regular Expressions?
Regular expressions (regex) are patterns used to match character combinations in strings. They are a powerful tool for searching, validating, and manipulating text.
Common flags
gGlobal — find all matches, not just the firstiCase insensitive — ignore case when matchingmMultiline — ^ and $ match line boundariessDotall — . matches newline characters
Basic syntax
.Any single character\dAny digit (0-9)\wWord characters (a-z, A-Z, 0-9, _)\sWhitespace*0 or more of preceding+1 or more of preceding?0 or 1 of preceding[abc]Any char in bracketsCommon use cases
- •Validating email addresses, phone numbers, URLs
- •Extracting data from log files
- •Search and replace in code editors
- •Form input validation
Building developer onboarding?
Skene generates onboarding checklists from your codebase.