en

Regex tester

Test a regular expression against your text and see all matches and groups - locally in your browser, with no upload. No daily cap.

Running locally on your device ...

Pattern (regex)
Ignore case (i)
Multiline (m)
Dot matches newline (s)
Unicode (u)
Match only at current position (y)

Running locally on your device ...

0%

Is my file uploaded?

No. Everything runs in your browser - your file never leaves your device. How this is verifiable

No upload100% local
Your content stays with youno third-party access
Hosted in GermanyGlobal Content Delivery
Independently auditedTLS A+ · HTTP headers A+

A regular expression (regex) describes a search pattern for text - such as "all email addresses", "any number" or "words starting with A". They are powerful but tricky: a small mistake in the pattern leads to quite different matches. This tool lets you run a pattern against a test text and immediately shows all matches with their position and the captured groups, so you can try out and refine the pattern safely.

You enter the pattern and can set the common switches: ignore case (i), multiline (m, makes start and end apply per line), dot matches newline (s), Unicode (u, correct handling of surrogate pairs and \p{} classes like \p{L}) and match only at the current position (y, the so-called sticky mode - the match must start exactly at the last position). The tool always searches globally, that is for all matches, and outputs the result as clear JSON: the number of matches plus, for each match, the found text, its position and the contents of the capture groups.

The whole evaluation runs entirely locally in your browser in pure JavaScript with the built-in regex engine - your test text is not uploaded, not stored, and no foreign library is loaded from a CDN. If the pattern is invalid, the tool says so honestly instead of inventing a wrong result.

The best-known online regex tester (regex101 and similar) is helpful, but needs an internet connection and sends the pattern along with the test text to a server - inconvenient when the test text contains confidential data such as log lines with email addresses or customer data. This tool runs entirely offline in the browser, with no account and no data transfer.

Free as often as you like: no daily cap, no account, no paywall - your input stays on your device. Many online services limit free use to a few runs per day or require an account; here everything runs locally in your browser - with no daily quota and no sign-up.

Specifications

Specifications
Input formatsText input
Output formatJSON
Batch processingNo
ProcessingLocally in your browser (JavaScript)
File uploadNone

In 3 steps

  1. Paste the test text into the text field.
  2. Enter the pattern and set the switches (i, m, s, u, y) as needed.
  3. Read or download the matches and groups as JSON.

Limitations: It uses JavaScript regex syntax (ECMAScript); other dialects (PCRE, Python) may differ in details. The search is always global. Test texts are limited to 200,000 characters; after 10,000 matches the search stops and says so in the result (the first 1,000 are listed). An extremely unfavorable pattern (such as (a+)+$) can run for a very long time. An invalid pattern leads to an honest error.

FAQ

Is my text uploaded?

No. The evaluation runs entirely locally in your browser; your test text and the pattern never leave your device and are not stored.

Which regex syntax is supported?

The JavaScript (ECMAScript) syntax of the built-in engine. Patterns from other languages like PCRE or Python usually work but can differ in details.

What do the switches i, m, s, u and y mean?

i ignores case, m makes line start and end apply per line, s lets the dot also match line breaks, u enables Unicode mode (needed for \p{} classes and correct surrogate pairs), y (sticky) only allows a match exactly at the current position. Global (all matches) is always active.

What happens with an invalid pattern?

The tool reports an honest error instead of producing a wrong result. Check the brackets and escapes in the pattern.

Does the regex tester also work on a phone?

Yes, in any current mobile browser just like on desktop - the pattern and test text stay local.

Does testing also work offline?

Yes. After the first load, testing even works without an internet connection - the browser's built-in regex engine is enough.

Is it safe to paste confidential test text here?

Yes. Unlike an online tester, your test text is not sent to a server - it stays entirely on your device.

Is Regex tester free - are there any limits?

Yes. You can use Regex tester as often as you like: no daily cap, no account, no paywall. Fixed bounds: test texts up to 200,000 characters and up to 10,000 matches per search (then the search stops and says so in the result; the first 1,000 are listed).

Related tools

Format JSON · Change case · Find & replace · Compare prompts