Regex Tester

Test regular expressions online with live match highlighting, flag toggles, replacement previews, and named group inspection.

Regular expression

Current expression: /\b([A-Z]{2,})\b/g

Flags

Global (g)

Find every match instead of stopping after the first.

Ignore case (i)

Match letters without caring about upper or lower case.

Multiline (m)

Let ^ and $ match the start and end of each line.

Dotall (s)

Allow the dot token to match newline characters.

Unicode (u)

Enable full Unicode support and named capture groups.

Sticky (y)

Only match from the current index without skipping ahead.

Leave blank if you only need to test matches.

Results4 matches

Matches

4

Execution time

0.57 ms

Flags

g

Longest match

5 chars

Highlighted matches

BatchToolkit makes REGEX testing friendly. Try matching uppercase words like HTTP, HTML, or CSS 123.

Match breakdown

Match 1Index 195 chars

REGEX

Captured groups

Group 1

REGEX

Match 2Index 774 chars

HTTP

Captured groups

Group 1

HTTP

Match 3Index 834 chars

HTML

Captured groups

Group 1

HTML

Match 4Index 923 chars

CSS

Captured groups

Group 1

CSS

Replacement preview

Related tools

Explore more helpers you might need next.