CalculateItToday

Regex Tester

Test and debug regular expressions with real-time matching and highlighting. Validate patterns, test multiple strings, and understand regex behavior instantly.

Regex Tester Tool

Regex Flags

Quick Regex Patterns

About Regular Expressions

Common Metacharacters

^ - Start of string/line
$ - End of string/line
. - Any character (except newline)
* - Zero or more repetitions
+ - One or more repetitions
? - Zero or one repetition

Character Classes

[abc] - Any character from set
[^abc] - Any character not in set
\d - Any digit [0-9]
\w - Word character [a-zA-Z0-9_]
\s - Whitespace character
\b - Word boundary

Regex Flags Explained

g (Global)

Find all matches, not just the first one

i (Case Insensitive)

Ignore case when matching

m (Multiline)

Treat string as multiple lines

s (Dot All)

Allow . to match newline characters

u (Unicode)

Enable full Unicode support

y (Sticky)

Match only from the lastIndex position