๐Ÿ”Ž Regex Tester

Test regular expressions in real time. Matches highlight as you type. Capture groups shown below.

/ /
g โ€” global i โ€” case insensitive m โ€” multiline s โ€” dot all

What is a regex tester?

A regex tester lets you write and debug regular expressions interactively. Instead of running code every time you tweak a pattern, you paste in sample text and see matches highlighted instantly. This tool supports JavaScript's regex engine with all standard flags.

Supported flags

g (global) โ€” find all matches, not just the first. i (case insensitive) โ€” match uppercase and lowercase the same. m (multiline) โ€” ^ and $ match line starts and ends, not just string start/end. s (dotAll) โ€” makes . match newlines too.

Common regex patterns

Email: \b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b ยท URL: https?:\/\/[^\s]+ ยท UK postcode: [A-Z]{1,2}\d[A-Z\d]? ?\d[A-Z]{2} ยท Phone: (\+\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}