Regex Escape, Splitter & Match Extractor
Extract all regex matches or capture groups, split text by pattern delimiters, or escape literal strings for regex.
Related developer tools
All Developer toolsRegex Tester
Test regular expressions with live match highlights, capture groups, and replacements.
Regex Patterns Library
Browse ready-to-use regular expressions for emails, URLs, IPs, dates, and passwords with instant live testing.
Base64 Encoder & Decoder
Encode or decode UTF-8 text and convert local files into Base64 data URLs.
URL Encoder & Decoder
Percent-encode or decode URLs and inspect or edit query string parameters.
About Regex Escape, Splitter & Match Extractor
Run three everyday regular expression tasks in one place: extract all matches or specific capture groups into a clean list, split text by a regex delimiter, or escape literal strings for safe use inside a RegExp.
How to use Regex Escape, Splitter & Match Extractor
- 1
Switch between Match Extractor, Regex Splitter, and Regex Escape using the mode bar.
- 2
Enter your pattern, flags, and optional capture group index ($0 for full match, $1–$9 for groups), or paste literal text to escape.
- 3
Review the extracted or split items, optionally deduplicate results, and copy or download the output as a .txt file.
Frequently asked questions
How do capture groups work in Match Extractor?
Group 0 extracts the entire matched text, while group 1, 2, or higher extracts only the substring captured inside the corresponding parentheses.
What characters does Regex Escape prefix with a backslash?
It escapes all standard regex metacharacters: . * + ? ^ $ { } ( ) | [ ] and \ so your literal string matches exact characters.
Is there a safeguard against infinite loops on zero-length regex matches?
Yes. The extractor advances lastIndex automatically on empty matches and caps execution to prevent freezing your browser tab.
