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 14,980 community submitted regex patterns...
0
[JS] Detect hostname with or without subdomain
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
Validate input la boi cua 100k
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
valid domain format
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Email Address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
How to separate letters and digits from a string in php
PCRE (PHP <7.3)
$str = '12jan'; $arr = preg_split('/(? RO [1] => 123 )
Submitted by
Ionut M Ionete
-
7 years ago
0
CIF (Codigo de Indentificación Fiscal) - Spain
PCRE (PHP <7.3)
Spain Format CIF (Codigo de Indentificación Fiscal)
Submitted by
dagope
-
7 years ago
0
Better Decimal Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
ID at end of string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
5
North American Phone Number
ECMAScript (JavaScript)
Validate North American phone numbers with capture groups for the Area Code, Exchange Code, Line Number, and Extension.
Submitted by
AaronBoots
-
7 years ago
0
Nth occurrence of word - pull single table out of HTML with a bunch of tables
PCRE (PHP <7.3)
3rd party generated HTML (Purchase Order) was rife with errors, so direct import was impossible. Decided to pull the particular table out of the HTML attachment, and then wrap that as "new" HTML for import into DOMDocument. PHP code: preg_match('/^(?:(?:(?!table).)*table){19}(.+?(?=table))/is', $ra...
Submitted by
Christopher Cilley
-
7 years ago
0
Swift Codes for any country
PCRE (PHP <7.3)
This will work for all swift codes, just eliminate the country names you don’t want to search for. The first 8 digits of a swift code determine the bank, the last 3 determine a specific branch. For Example CIBCCATTXXX would CIBC and the XXX is the branch.
Submitted by
anonymous
-
7 years ago
0
match cookie name pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
Match Time in either 24Hr or 12Hr format
PCRE (PHP <7.3)
Matches a time in either 25Hr or 12Hr format. Seconds are optional for either format.
Submitted by
anonymous
-
7 years ago
0
cisco_syslog_regex
PCRE (PHP <7.3)
^(+)\s(+)\s(+)\s(+)\s+(?+)\s+\*(?+\:)\s+(+)\s+(+)\s+(+)\s+\%(?+)\s+(?+)\s+(?+\')\s+\w+\s+\w+\:\s+(?+)\s+\w+\s+\w+\:\s+(?+)\s+\w+\s\'\w+\'\s+(?)\w+\s+\'(?+)\s+\w+\s+\'\w+\'\s+\w+\s+\w+\s+\'(?+)\s+\w+
Submitted by
anonymous
-
7 years ago
0
comma's not within quotes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
test regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
URL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
regla redireccion atencion al cliente
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Pug variables
PCRE (PHP <7.3)
Change jade "#{variable}" to "" + variable + ""
Submitted by
anonymous
-
7 years ago
0
phpbb smilies
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
...
484
485
486
487
488
...
749
url
2
Regular Expression
PCRE (PHP <7.3)
/
(
(
http
|
https
)
(
\:\/\/
)
(
(
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,16}
)
)
|
(
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,16}
)
)
)
(
(
(
[
\/
a
-
zA
-
Z
\
_
\-
%0
-
9
\.\?\=
]
{1,3000}
)
|
(
\/
)
|
(
)
)
)
)
/
Open regex in editor
Description
took me way to long
Submitted by
timmyRS
-
8 years ago