Input
Pattern: \b[a-z]+\b Text: hello 123 world
Output
hello, world
Text Tools
Test JavaScript regular expressions with live highlighting, match counts, capture groups, flag toggles, and built-in pattern presets. Matching runs locally in your browser.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
文本处理
常用正则模板
匹配高亮
已复制结果
匹配详情
Input
Pattern: \b[a-z]+\b Text: hello 123 world
Output
hello, world
Common JavaScript flags such as g, i, m, and s can be toggled from the UI.
Yes. Numbered and named capture groups for each match are listed in the match details panel.
Tools
Continue with another translated tool for a nearby task.
Regex Replacer
Run regular-expression find and replace with custom flags and capture-group backreferences such as $1. Batch text cleanup stays in your browser.
Regex Extractor
Extract every regex match from text with flags, capture groups, expand-all groups, dedupe, and multiple output formats for log fields and structured collection.
Regex Explainer
Test regular expressions locally in your browser, highlight matches, and catch compile errors. Useful when debugging email, IP, or custom extractors without pasting unknown patterns blindly.