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...
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
4
Version Matcher
PCRE (PHP <7.3)
Matches version strings.
Submitted by
anmols
-
9 years ago
4
extract domain with port
ECMAScript (JavaScript)
no description available
Submitted by
yooresh
-
9 years ago
4
Function Declaration / Expression
ECMAScript (JavaScript)
matches both function declarations and expressions in javascript. ex. function name () {...} || function () {}
Submitted by
Ja Superior
-
9 years ago
4
DNS hostname well-formedness validation
PCRE (PHP <7.3)
Validates that a DNS hostname is well-formed only. You will still need to check that the overall length of the hostname, including the implied trailing "." (if not present), does not exceed 255 bytes.
Submitted by
Jeff Walter
-
9 years ago
4
MasterCard validate 2017
PCRE (PHP <7.3)
Match a MasterCard with new range for 2017: 51-55 and 2221-2720 @incarnated
Submitted by
John C
-
9 years ago
4
UK Postcode
ECMAScript (JavaScript)
no description available
Submitted by
msyed
-
9 years ago
4
Validate Argentinian postal code
PCRE (PHP <7.3)
Validates CPA (Código Postal Argentino, spanish for Argentinian Postal Code).
Submitted by
Agustín Bouillet
-
8 years ago
4
Validates argentinian postal code
PCRE (PHP <7.3)
Validates the two valid postal codes in Argentina
Submitted by
Agustín Bouillet
-
8 years ago
1
...
893
894
895
896
897
...
900
Community Library Entry
0
Regular Expression
Python
r"
(?:
(?P<Port>
\w
+
(?:
(?:
[
\/
]
\d
)?
)+
(?:
(?:
[
.
]
\d
)?
)+
)
\s
+
(?P<Name>
[
\w
_
\/
]
+
)?
\s
+
(?P<Status>
\w
+
)
\s
+
(?P<Vlan>
\w
+
)
\s
+
(?P<Duplex>
\w
+
)
\s
+
(?P<Speed>
\w
+
)
\s
+
(?P<Type>
[
\w
\-
]
+
)
(?:
\s
+
)?
)
"
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
5 years ago