Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,000 community submitted regex patterns...
22
UK Postcode Checker
PCRE (PHP <7.3)
Checks for valid UK/British postcodes. There was another on here that had for some reason been upvoted, but it was actually incorrect as it worked on none of my valid own postcodes! Namely that it assumed two letters and a number (BS3) when you can have variations (M20). Allows for an optional spac...
Submitted by
MaffooBristol
-
10 years ago
34
Google like regex
ECMAScript (JavaScript)
Attempts to mimic Google search box behavior, returning an array with the separated search strings (that keep the +/- indicator for following operations)
Submitted by
mettjus
-
10 years ago
4
For Auto RTFs
PCRE (PHP <7.3)
no description available
Submitted by
Dan Bloomquist
-
12 years ago
4
outer Parentheses
PCRE (PHP <7.3)
Finds the outermost pair of parentheses. Compatible with any amount of nesting
Submitted by
Jonas Gerneth
-
11 years ago
4
Command handling
PCRE (PHP <7.3)
Handles commands like in CMD
Submitted by
anonymous
-
10 years ago
4
parsing a numeric strings with backslash using regexp
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
4
uri parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
4
Match nth occurence of pattern
PCRE (PHP <7.3)
Match nth occurence of the patterns in the inner parenthesis. Put nth that you want to match in the curly braces (here, {3}).
Submitted by
Alex Hall
-
10 years ago
4
Equation matching (without equal)
Python
use this to get value of any side of an equation. You can combine this with https://regex101.com/r/fH5kJ1/1
Submitted by
Kerosene2000
-
9 years ago
4
Roman numeral detector
PCRE (PHP <7.3)
Detects valid Roman numerals (up to 3999), and splits into 4 capture groups: thousands, hundreds, tens, and units.
Submitted by
Terence Linnell
-
9 years ago
4
Epic EHR Sticker QR code patient information
PCRE (PHP <7.3)
Text output produced by reading the QR code present on patient stickers created by Epic (R) medical record software
Submitted by
MeWa
-
9 years ago
4
TV series season and episode names
PCRE (PHP <7.3)
This regex matches against season and series names
Submitted by
mikey
-
9 years ago
4
Typescript - /// <reference path="..."/> Expression
ECMAScript (JavaScript)
Finds Typescript's reference path syntax.
Submitted by
Lovelidge, Shawn
-
9 years ago
4
Remove common numeric suffixes (eg: 40m, 60%)
PCRE (PHP <7.3)
Usage: "40%".replace(/\b([\d\.]+)mkb%/ig, '$1')
Submitted by
anonymous
-
9 years ago
4
Validate hex color
PCRE (PHP <7.3)
Validates hexadecimal color codes based on the following rule set: Optionally starting with a hash. 3 or 6 characters in length. Using the [0-9a-f] character set.
Submitted by
Nathaniel Blackburn
-
9 years ago
4
Jeff Test
PCRE (PHP <7.3)
Valid and Invalid emails
Submitted by
anonymous
-
9 years ago
4
import url image
Python
import url image
Submitted by
bartimeys
-
9 years ago
4
JWT Validation
PCRE (PHP <7.3)
Validate a Json Web Token (JWT).
Submitted by
Erik Maas
-
9 years ago
4
kenteken validator
PCRE (PHP <7.3)
validator voor kenteken vb: 11-AA-BB
Submitted by
Senne Root
-
9 years ago
4
find uncommented coffeescript console.logs
ECMAScript (JavaScript)
no description available
Submitted by
valiafetisov
-
9 years ago
1
...
3
4
5
6
7
...
900
Community Library Entry
0
Regular Expression
Golang
`
.
*
\n
(
\|
?
(
:
?
?
---
.
*
?
\|
)+
.
*
)
`
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
6 years ago