Regex Tester
Test patterns, inspect matches, preview replacements, and keep your regex workflow readable while you iterate.
Characters
.Any character (except newline)\dDigit (0-9)\DNot a digit\wWord character (a-z, A-Z, 0-9, _)\WNot a word character\sWhitespace (space, tab, newline)\SNot whitespaceAnchors
^Start of string (or line with m flag)$End of string (or line with m flag)\bWord boundaryQuantifiers
*Zero or more+One or more?Zero or one (optional){n}Exactly n times{n,m}Between n and m times*?Zero or more (lazy)Groups & Lookaround
(abc)Capture group(?:abc)Non-capturing group(?=abc)Lookahead(?!abc)Negative lookahead(?<=abc)Lookbehinda|bEither a or bCharacter Classes
[abc]Any of a, b, or c[^abc]Not a, b, or c[a-z]Range: a through z[0-9]Range: 0 through 9Flags
gGlobal — find all matchesiCase insensitivemMultiline — ^ and $ match per linesDotall — . matches newlines too