Regex Library
Find a tested regular expression for common jobs such as emails, URLs, dates, IP addresses and postcodes.
Runs in your browser. Nothing is uploaded.
Loading the app…
Related apps
How to use it
- How do I use a pattern?
- Copy it into your code or into the Regex Tester and try it on your own text. Most are anchored with ^ and $ to match a whole value; remove those to search inside longer text.
- Are these patterns strict?
- They are practical, not complete. The email pattern, for instance, catches typos but does not prove an address exists.