Most used by developers

Regex Test

Test regexp match.

How to use Regex Test

Regex Test — Test whether a Go regular expression matches the input, and report match or no match. Free to use in D2i DevTools — no account required.

Steps

  1. Fill in Pattern. This field is required.
  2. Fill in Input. This field is required.
  3. Click Run and copy the result under the form.

Frequently asked questions

What is Regex Test used for?

Use it to try a pattern before you put it in code. The syntax is Go’s regexp (RE2), not PCRE.

How do I use the free online Regex Test tool?

Fill in Pattern. This field is required. Fill in Input. This field is required. Click Run and copy the result under the form.

What can I paste or upload into Regex Test?

Enter the pattern and the text. Lookaheads and backreferences are not available in RE2.

What output does Regex Test give me?

match if the pattern matches anywhere in the text, otherwise no match. An invalid pattern returns an error.

Is Regex Test free, and is my input private?

Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.

Why does a pattern that works in JavaScript fail here?

Go uses RE2. Lookahead such as (?=...) and backreferences such as \1 are rejected. Anchor with ^ and $ if you need a full-string match; an unanchored pattern can match a substring.

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.