Text & code / LING.TOOLS
Regex tester
Test JavaScript regular expressions, inspect matches and capture groups, and preview replacement text with timeout protection.
Result
Ready when you are
Set up your input and run the tool. Your result will appear right here.
Private · Instant · LocalGUIDE & CONTEXT
About this tool
Explore the JavaScript RegExp dialect against sample text before putting a pattern into application code. Flags control global matching, case sensitivity, multiline anchors and other behavior. Patterns run in a separate worker with a time limit because backtracking-heavy expressions can otherwise block interaction.
How to use it
- Enter the pattern without surrounding slashes and select JavaScript flags.
- Paste sample text and optionally a replacement expression.
- Run the test to inspect matches, captured groups and replacement output; simplify the pattern if it exceeds the time limit.
Example
Pattern (\w+)@(\w+\.\w+) with flag g captures the user and domain in hello@example.com.