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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 11,780 community submitted regex patterns...
1
ipv4 IP addressses, capturing private ranges
PCRE (PHP <7.3)
Capture 0.0.0.0-255.255.255.255 IP address octets. Capture private ranges, such as '169.254.' and '10.'
Submitted by
OnlineCop
-
9 years ago
1
decimal number validation
PCRE (PHP <7.3)
accepts 1; 1.1; 112315.23135
Submitted by
MS
-
9 years ago
1
username
PCRE (PHP <7.3)
Letras, Ñ, acentos, números, guión y barra baja
Submitted by
diegosanz
-
9 years ago
1
Slug
PCRE (PHP <7.3)
Matches alphanumeric slugs without repeating dashes
Submitted by
Óscar Enríquez
-
9 years ago
1
Get email info (2)
PCRE (PHP <7.3)
Get Gmail tag, user and domain of an email address. -- Fixed the bug that the label be obligatory
Submitted by
Matías Pizarro González
-
9 years ago
1
my apache2 access.log regex
PCRE (PHP <7.3)
google.com:80 212.111.203.171 - - [02/Mar/2015:10:27:04 +0000] "GET /css/style.css HTTP/1.1" 304 138 "http://google.com" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
Submitted by
marf
-
9 years ago
1
Year regexp
PCRE (PHP <7.3)
regexp for year filtering
Submitted by
anonymous
-
9 years ago
1
ipv4 and ipv6
PCRE (PHP <7.3)
no description available
Submitted by
shri
-
9 years ago
1
Match a string that is equal to a string before a '='
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Matches Content-Type field of HTTP response
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
ip/host:port parser (proxy lists)
PCRE (PHP <7.3)
simple ip:port or host:port parser capturing ip or host and port, usually used for proxy lists
Submitted by
The Voider
-
9 years ago
1
Simple Telephone number regex
PCRE (PHP <7.3)
It accepts phone numbers of the form 0XX XXX XX XX (stylized here, it doesn't really accept spaces). Also, it can detect the international area code (e.g. +41 OR 0041 for Switzerland). It's not a good idea to rely on the groups (because they do not work for this reason. At ALL.
Submitted by
Adowrath
-
9 years ago
1
Search tags "a" and get link and text from tags
PCRE (PHP <7.3)
Search group "link=>text" in tags "a"
Submitted by
Andy
-
9 years ago
1
OpenSSL certificates ASCII match all in chain
PCRE (PHP <7.3)
Match all certificate in a chain from a OpenSSL s_client output. Need for this come from a script that should be able to verify the root CA of a URL.
Submitted by
Evgeni Simeonov
-
9 years ago
1
Valida RFC mexicano
PCRE (PHP <7.3)
valida el formato del registro federal de contribuyentes de México.
Submitted by
Rogelio
-
9 years ago
1
Search regex
PCRE (PHP <7.3)
/** this regex should match most cases where the user forgets to put an operator somewhere and add an OR, it still does not handle nested square brackets but those are invalid anyways this page has an explanation https://regex101.com/r/fF7wO1/2 * the way this regex grabs conflicting matches is b...
Submitted by
warnock
-
9 years ago
1
count occurence of comma
PCRE (PHP <7.3)
no description available
Submitted by
Kevin H
-
9 years ago
1
starts with abc, has 123 and ends with xyz
PCRE (PHP <7.3)
#starts with abc, has 123 and ends with xyz abc123xyz
Submitted by
Kifah
-
9 years ago
1
Password validation
PCRE (PHP <7.3)
Check if the string has a minimum of 6 characters, at least 1 upper case char, at least 1 lower case char and at least 1 number with no spaces.
Submitted by
Webchef.de
-
9 years ago
1
geolocation coordinates string
PCRE (PHP <7.3)
Matches a geolocation coordinates string consisting of latitude and longitude separated by a comma with up to 7 decimal places precision.
Submitted by
Steve Piercy
-
9 years ago
1
...
33
34
35
36
37
...
589
Lab 6 es 2.3
0
Regular Expression
PCRE2 (PHP >=7.3)
/
from:
\s
*
"
+
\s
*
[
a
-
zA
-
Z
]
*
+
\s
*
"
\s
*
,
\s
*
to:
\s
*
"
\s
*
[
a
-
zA
-
Z
]
*
\s
*
"
\s
*
,
\s
*
content:
\s
*
"
\s
*
ping
|
pong
*
\s
*
"
\s
*
/
gm
Open regex in editor
Description
Carry a payload which is either ping or pong
Submitted by
anonymous
-
3 years ago