Extract email addresses
Find email-like strings in logs, pasted text, or fixture data.
[\w.%+-]+@[\w.-]+\.[A-Za-z]{2,}Developer Utilities
Test regular expressions against sample text with clear matches and common flags.
This tool runs locally in your browser. Your input is not sent to a backend or paid API.
Test JavaScript regular expressions against sample text locally.
How to use
Follow this workflow to complete the task locally without leaving the page.
Enter a regular expression pattern without wrapping slashes.
Choose the flags you want to test, such as global, ignore case, or multiline.
Paste sample text into the test area.
Run the test to view matches, indexes, and captured groups.
Examples
Use these examples to understand common workflows and expected input formats.
Find email-like strings in logs, pasted text, or fixture data.
[\w.%+-]+@[\w.-]+\.[A-Za-z]{2,}Match lowercase words separated by hyphens when validating URL slugs.
^[a-z0-9]+(?:-[a-z0-9]+)*$FAQ
Answers to common questions about behavior, privacy, and practical usage.
It uses the JavaScript RegExp engine available in your browser, so behavior matches JavaScript regular expressions.
No. Enter only the pattern body, such as \d+ or [a-z]+. Select flags with the controls instead of typing /pattern/g.
Yes. When a match includes captured groups, the results list shows each group under the matching value.
No. Pattern testing runs locally in your browser and does not send your sample text to a backend.