Regex match extractor
Pull every regex match or capture group out of a text into a list, or split text on a pattern.
Missing a feature or found a bug in Regex match extractor? Tell me on X (@_andrewtran) or by email.
How to use Regex match extractor
- Type a pattern and its flags.
- Paste the text to search.
- Copy the list of matches, one per line.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
How do I get one capture group?
Set Group to its number. Group 0 is the whole match, group 1 is the first pair of brackets in the pattern.
What does Split text do?
It cuts the text wherever the pattern matches and lists the pieces. A pattern of commas and spaces turns a list into lines.
Related tools
Nano ID generator
Generate short, URL-safe random IDs of any length, with a choice of character sets.Secret key generator
Generate 128 to 512-bit random secret keys as hex, Base64 and Base64URL.YAML formatter
Format and validate YAML with even indentation, and see the line of any error.Placeholder image generator
Make a dummy image of any size and colour, as SVG, PNG or a data URI to paste into code.