Security & Developer Tools
Test, explain, compare, and transform regular expressions without sending your text to a server.
Enter a JavaScript pattern, choose flags, and paste sample text. Regex Studio highlights matches without changing the input and shows UTF-16 offsets, line numbers, numbered captures and named groups. An unmatched optional group is different from a group that matched an empty string.
Preview a replacement before downloading it. JavaScript replacement tokens include $1, $<name> and $&. Extract full matches and captured fields into rows, then export CSV, TSV, JSON or JSON Lines. CSV export protects cells that begin like spreadsheet formulas.
Add positive and negative test cases before changing a pattern. The Explain view describes supported syntax; the Builder assembles escaped components, and From Examples proposes candidates for you to review. Compare checks two expressions on a sample corpus. Open TXT, LOG, CSV, TSV, JSON or JSONL files locally and select a field for batch extraction or a processing pipeline. Whole-text and row modes differ: anchors and cross-line matches apply to each chosen unit.
\bORD-\d{4}\b with g finds ORD-1042 in order=ORD-1042.\b\d{4}-\d{2}-\d{2}\b finds 2026-10-24. This does not validate a calendar date.^(?<key>[\w.-]+)=(?<value>.*)$ with gm creates separate key and value fields from status=ok. {2,} with g can be replaced with one space. It does not include tabs.Matching uses the JavaScript RegExp implementation in your browser, inside a worker that can be stopped or timed out. JavaScript is not identical to PCRE2, Python or Go regex; code snippets for other languages require testing in their actual runtimes. A warning about slow syntax is a heuristic, not proof that a pattern is safe. The live editor limits input and result previews so long or expensive patterns do not overwhelm the page. Your content is not saved persistently unless you choose Save locally or export it.
No. Pattern execution and file parsing happen in your browser. Static site assets may load from Mekh Tools, but input and file content is not sent to the server for processing.
Yes. Use a group such as (?<order>ORD-\d{4}), then review the Extract table or export it as CSV, JSON or JSON Lines.
The matching engine is JavaScript. Generated snippets for other languages are starting points with compatibility warnings; those runtimes are not executed by this page.
No. A regex can find email-like text, but complete validation depends on the application's rules and often needs more than a pattern.
Selected files are processed locally on your device and are not uploaded to our application server.