How to Use the Extract Regex Matches from Text Online
- 1Paste the source text with its original spacing and line breaks.
- 2Enter the pattern and put flags in the separate field.
- 3Add capture groups only around the values you want to see in the result.
- 4Review the rows, or remove the capture groups when you need the entire matching fragment.
Input & Output Examples
The pattern captures only the letter and digits after Item. The label is part of the match but stays outside the capture.
Item A12, Item B08A12
B08Two capture groups put the direction and number on the same row separated by a vertical bar. The tool finds both matches even with the flags field empty.
west=12; east=7west | 12
east | 7Practical Developer Workflows
- Extract short record labels from a formatted paragraph.
- Pull two related values from each repeated entry and inspect them together.
- Compare a case-sensitive pattern with a case-insensitive one against the same fixture.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Let us know directly so our engineering team can fix it.