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,020 community submitted regex patterns...
10
RFC 3987 compliant URL regex
ECMAScript (JavaScript)
This is a JavaScript port of the URL regex from http://stackoverflow.com/a/190405/384062 that includes a bug fix and some optimization. Mathias Bynens's Regenerate was used to convert unicode escapes. Bug fix: Eliminated stray | falsely allowing querystring to contain | ...
Submitted by
Hans Meyer
-
9 years ago
11
UUID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
10
MikroTik FireWall
PCRE (PHP <7.3)
Regex used in Splunk to extract fields from Mikrotik FW. NOTES: Mikrotik must be configured to use "BSD Syslog" format FW rules must add, as log prefix, the action: drop accep...
Submitted by
HappyIdeasMaker
-
10 years ago
8
repeat group match
Python
no description available
Submitted by
anonymous
-
9 years ago
10
If-Then-Else Conditionals
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
5
ipv6 Validation
PCRE (PHP <7.3)
Handle all condition for ipv6 example: 1) FE80::8329 2) FE80::FFFF:8329 3) FE80::B3FF:FFFF:8329 4) FE80::0202:B3FF:FFFF:8329...
Submitted by
Lim Yew Teck, Nicholas
-
9 years ago
10
money: either 0 or 2 dp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
11
IPv4 Validator
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
(Last modified a year ago)
13
CSS Color Matcher
ECMAScript (JavaScript)
Pattern matching and extracting color code formats using RegEx. https://github.com/Kyza/color-regex/
Submitted by
Kyza
-
a year ago
5
Youtube ID matcher
ECMAScript (JavaScript)
Credit: https://gist.github.com/FinalAngel/1876898
Submitted by
anonymous
-
11 years ago
9
Extract url GET parameters
PCRE (PHP <7.3)
Returns key/value pair of a url. Also works with google fonts which has additional information
Submitted by
anonymous
-
10 years ago
6
Split address line into street name and house number
PCRE (PHP <7.3)
This regular expression splits an address line like for example "1117 Franklin Blvd" into the street name and house number. It also supports addresses where street name and house number are the other way around (e.g. "Mustermannstr. 1"). Furthermore, this regular expression also supports address lin...
Submitted by
Andre Wisplinghoff
-
10 years ago
9
English date in "dd mmmm yyyy" format
Python
Parse an English date following the "dd mmmm yyyy" format.
Submitted by
Tantale
-
10 years ago
5
MAC address
ECMAScript (JavaScript)
a mac address separated by dashes or colons.
Submitted by
anonymous
-
9 years ago
11
youtube url match
ECMAScript (JavaScript)
extract video id, index, play list id from youtube url
Submitted by
anonymous
-
9 years ago
6
Email with + symbol
ECMAScript (JavaScript)
email that accepts the plus (+) symbol
Submitted by
luckcheese
-
9 years ago
10
entity
Python
no description available
Submitted by
anonymous
-
9 years ago
9
Letters, numbers and blank space
PCRE (PHP <7.3)
The following regular expression matches only letter a-z A-Z numbers 0-9 and a blank space for a given string.
Submitted by
Jordan Raychev
-
9 years ago
7
Split quotes and single words
ECMAScript (JavaScript)
Find " and ' quoted strings and "orphaned"/single words in a string
Submitted by
LoveIsGrief
-
11 years ago
5
Accept url without www
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
...
4
5
6
7
8
...
901
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(
[
\w
]
+
)
\s
?
=
\s
?
(
[
-+
\s
]
*
?
(
[
0
-
9
]
*
\.
[
0
-
9
]
+
|
[
0
-
9
]
+
)
)?
(
[
-+
]
)*
[
Rr
]
amp
\(
FinalValue:
(
[
-+
\s
]
*
?
(
[
0
-
9
]
*
\.
[
0
-
9
]
+
|
[
0
-
9
]
+
)
)
(
[
\w
]
*
)
,RampTime:
(
[
0
-
9
]
*
\.
[
0
-
9
]
+
|
[
0
-
9
]
+
)
(
[
\w
]
*
)
\)
/
g
Open regex in editor
Description
no description available
Submitted by
anonymous
-
7 years ago