Tools
Runs locally

Common Regex Patterns

Starting points for email, URL, numbers and more.

\d+
One or more digits
[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}
A practical email shape
https?:\/\/\S+
An http(s) URL
^[a-z0-9]+(?:-[a-z0-9]+)*$
A URL slug
\b[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\b
A UUID v4
^(?:\d{1,3}\.){3}\d{1,3}$
A rough IPv4 shape

Export and import are available after you sign in. Sign in

Patterns are examples to copy into the regex tester. They are not a guarantee for every input.

About this tool

Start from a proven pattern instead of writing one from scratch. Search the library for what you need to match, copy the expression and try it on your own data.

How to use it

  1. 01

    Search for a pattern, for example email.

  2. 02

    Copy the regular expression.

  3. 03

    Test it on your data in the Regex Tester.

FAQ

Frequently asked questions

Will these patterns match every valid input?

They are practical examples, not guarantees. Test them against your real data before relying on them.

Which regex flavor are they written for?

JavaScript, which is close to the syntax used in most languages.