Regex Playground

Prototype and debug JavaScript regular expressions without sending data to a server. Adjust flags, inspect match boundaries, review capture groups, and try replacement strings in real time.

Current regex: /([A-Za-z0-9._%+-]+)@([A-Za-z0-9.-]+)\.([A-Za-z]{2,})/gi

Enter a pattern to start testing.

Pattern Builder

Sample Text & Replace

Replacement preview
Add a replacement string to see the updated text.
Highlight preview
Sample text will render here with matches highlighted.

Match Details

Flags: global, case-insensitive

0 matches detected
# Match Start End Length Groups
No matches yet.
Named groups