AI Regex Generator
Build, test, and debug regular expressions with real-time match highlighting. Choose from 20+ common patterns or write your own.
๐ Pattern Library
๐ง Regex Pattern
/
/
๐งช Test String
โ Results โ 3 matches
test@example.com
hello@world.org
not-an-email
foo@bar.co.uk
#1
test@example.comindex: 0#2
hello@world.orgindex: 17#3
foo@bar.co.ukindex: 46Regular Expression Cheat Sheet
Quick reference for the most commonly used regex syntax.
Character Classes
. any character\d digit [0-9]\w word char [a-zA-Z0-9_]\s whitespace[abc] a, b, or c[^abc] NOT a, b, or cQuantifiers
* 0 or more+ 1 or more? 0 or 1{n} exactly n{n,m} n to mAnchors & Groups
^ start of string$ end of string\b word boundary(abc) capture groupa|b a or b