Regex Extractor
Find regex matches and capture groups in local text, then export the values in source order.
- Free
- Works Offline
- No Uploads
How to Extract Text With Regex
- Open the HTML, review Security Check, then select Continue.
- Choose a local UTF-8 file, paste text or select Open Sample.
- Enter a JavaScript pattern without enclosing slashes. Add flags such as i for case-insensitive matching or u for Unicode. Choose Full Match, Group by Number or Group by Name. Find Matches scans in source order.
- Use View match or the value button to inspect the source. Positions count UTF-16 code units from zero and the end is exclusive.
- Build a CSV for match numbers, match and capture spans, status and exact values. Import the Value column as text to retain leading zeros and formula-like values. Delimited text joins present values and skips absent captures.
- Cancel an operation if needed. The worker deadline is four seconds. Limits are 16 MiB per file, 16 Mi UTF-16 code units of pasted input, 4,096 UTF-16 code units per pattern, 16 MiB of match offsets and 16 Mi UTF-16 code units per export.
Extract the Values You Need
- Review source context for a hit and copy its selected value.
- Use Unicode-aware flags to keep non-BMP characters whole.
- Cancel a long scan or export. Each worker operation has a four-second deadline.
Formats and Compatibility
| Input | Open UTF-8 text or paste a source. The local extract text with regex tool accepts JavaScript patterns and flags. |
|---|---|
| Output | Choose a full match, numbered group or named group. Preview the hits, then build a CSV or delimited text export. |
| Browser | A modern browser with local file support. |
| Scope | JavaScript regular expressions with capture groups and UTF-16 offsets. Worker time and memory limits apply. |
| Operating Systems |
Local Processing Without Uploads
This free, browser-based utility runs on your device with no upload. The standalone HTML works offline after extraction from its ZIP.
Select Open Sample to see the workflow with the included example.
Formats and Match Locations
Use UTF-8 text files up to 16 MiB or paste up to 16 Mi UTF-16 code units. JavaScript regex offsets are zero-based UTF-16 code units with exclusive ends. The browser needs regex match indices and local Blob workers.
Read and Save the Result
CSV keeps repeated matches in source order. It includes one-based match numbers, full-match and selected-capture spans, and matched, empty or absent status. Delimited text joins present values and skips absent captures. Import the CSV Value column as text to retain leading zeros and formula-like values.
Frequently Asked Questions
Can I extract text with regex offline?
Use the extract text with regex download, extract the ZIP, and run RegexExtractor.html in a compatible browser.
Can I extract text with regex without uploading files?
Yes. This extract text with regex browser tool reads the source and runs the pattern locally.
Can I extract text with regex in browser?
Yes. Open the free extract text with regex page to extract text with regex online using local processing, or use the downloaded copy offline.
How do I tell absent and empty captures apart?
The preview and CSV distinguish matched, empty and absent. An absent capture has blank capture offsets. An empty capture has equal start and end offsets.
What happens if a pattern or source exceeds a limit?
The tool identifies the problem and allows a retry. A scan or export stops after four seconds. Splitting a large source or simplifying a slow pattern can help.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.