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...
9
Removing an XML Nodes namespace prefix from a XML string wit
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
9
Youtube ID match
PCRE (PHP <7.3)
This regex will match any Youtube video ID thrown at it and return one capturing group containing the ID.
Submitted by
Jacob Overgaard
-
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
9
Fixo LDN CSP e SEM CSP
PCRE (PHP <7.3)
no description available
Submitted by
Marcos Müller
-
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
9
domain - host
Python
no description available
Submitted by
anonymous
-
9 years ago
9
only numbers
PCRE (PHP <7.3)
A string with only numbers in
Submitted by
Gotts
-
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
9
Fiddler raw body to PHP array
PCRE (PHP <7.3)
no description available
Submitted by
garsax
-
9 years ago
10
Just validate one sequence of
PCRE (PHP <7.3)
sdfs sdfs FLBREV00022230 dsfsdfs sdfsf FLBREV00022234 In this case is false
Submitted by
Fiipe
-
10 years ago
10
Strip Email ID from Name
PCRE (PHP <7.3)
Use this regex to select all characters up to the "" bracket. It works across multiple lines. You can get an email list with only the IDs. This is the pattern it matches: Alpha Person Step 1 (.*) [$ Step 2 [$.$] (.*) gives you aperson@whatever.org...
Submitted by
Jonathan Davidar
-
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
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
10
If-Then-Else Conditionals
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
10
money: either 0 or 2 dp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
10
entity
Python
no description available
Submitted by
anonymous
-
9 years ago
10
Valid Telephone Number
ECMAScript (JavaScript)
This regex validates varying types of telephone numbers.
Submitted by
Adam Recvlohe
-
9 years ago
10
extract subdomain(if available) or domain from URL
Python
This regex should extract the subdomain, if any, or the domain, if no subdomain is used, from an arbitrary URL
Submitted by
trevi@twanda.com
-
9 years ago
11
Address Check Validation
PCRE (PHP <7.3)
Check for true or false street address format
Submitted by
Dilip Borad
-
11 years ago
11
Date(Including Leap Year) YYYY-MM-DD hh:mm:ss
PCRE (PHP <7.3)
Validates DateTime of format YYYY-MM-DD hh:mm:ss including Leap Year
Submitted by
Madhan
-
11 years ago
1
...
896
897
898
899
900
901
Community Library Entry
5
Regular Expression
ECMAScript (JavaScript)
/
(?:
https
?
:
\/\/
)?
(?:
www
\.
)?
(?:
youtu
\.
be
\/
|
youtube
\.
com
\/
(?:
embed
\/
|
v
\/
|
playlist
\?
|
watch
\?
v=
|
watch
\?
.
+
(?:
&
|
&
)
;v=
)
)
(
[
a
-
zA
-
Z0
-
9
\-
_
]
{11}
)?
(?:
(?:
\?
|
&
|
&
)
index=
(
(?:
\d
){1,3}
)
)?
(?:
(?:
\?
|
&
|
&
)?
list=
(
[
a
-
zA
-
Z
\-
_0
-
9
]
{34}
)
)?
(?:
\S
+
)?
/
g
Open regex in editor
Description
extract video id, index, play list id from youtube URL
Submitted by
anonymous
-
9 years ago