a apiary.
← All tools

Developer / BROWSER UTILITY

Regex Tester

Test JavaScript regular expressions, inspect captures and preview replacements locally.

Processed locally in your browser. Your data is not uploaded.

JavaScript RegExp, not PCRE, .NET or Java. Positions are UTF-16 code-unit offsets. Supports g, i, m, s, u, y and d when supported by your browser. A four-second worker timeout and cancellation stop pathological patterns.

Processed in your browser. Input limit: 100,000 characters (XPath: 50,000); output limit: 1,000,000 characters; query and regex limit: 2,000 matches. Larger inputs should be split into smaller files.

Read locally as UTF-8. Maximum 100,000 characters (XPath: 50,000). Files are not sent anywhere.

Highlighted matches

Zero-length matches appear in the result list. Overlapping highlights are not drawn.

Send output to…

Transfers stay in memory on this site. The destination does not run automatically. Copy is available if the new tab is blocked.

Good to know

JavaScript RegExp, not PCRE, .NET or Java. Positions are UTF-16 code-unit offsets. Supports g, i, m, s, u, y and d when supported by your browser. A four-second worker timeout and cancellation stop pathological patterns.

Example: Use Try an example for fictional Record and Code values.