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,040 community submitted regex patterns...
0
comma's not within quotes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 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
-
8 years ago
0
match cookie name pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 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
-
8 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
-
8 years ago
0
ID at end of string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Better Decimal Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Taiwan phone number format
ECMAScript (JavaScript)
Forked from https://regex101.com/r/vL1pD2/1
Submitted by
Albert Yu
-
8 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
-
8 years ago
0
MMDP_regex_workshop_simple_zip_code_example
Python
no description available
Submitted by
ghukill
-
8 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
-
8 years ago
0
Email Address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
valid domain format
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Validate input la boi cua 100k
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
[JS] Detect hostname with or without subdomain
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Find string collection by @
PCRE (PHP <7.3)
using in OData Api to search aliases.
Submitted by
anonymous
-
8 years ago
0
Remove Corrupt indents
PCRE (PHP <7.3)
Remove Corrupt indents
Submitted by
anonymous
-
8 years ago
0
Email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
FFMPEG - Get Bitrate
PCRE (PHP <7.3)
no description available
Submitted by
DreamWave
-
8 years ago
0
Youtube video id from link
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
23
24
25
26
27
...
902
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
(
^
(
(
(
0
[
1
-
9
]
|
1
[
0
-
9
]
|
2
[
0
-
8
]
)
[
\/
]
(
0
[
1
-
9
]
|
1
[
012
]
)
)
|
(
(
29
|
30
|
31
)
[
\/
]
(
0
[
13578
]
|
1
[
02
]
)
)
|
(
(
29
|
30
)
[
\/
]
(
0
[
4,6,9
]
|
11
)
)
)
[
\/
]
(
19
|
[
2
-
9
]
[
0
-
9
]
)
\d\d$
)
|
(
^
29
[
\/
]
02
[
\/
]
(
19
|
[
2
-
9
]
[
0
-
9
]
)
(
00
|
04
|
08
|
12
|
16
|
20
|
24
|
28
|
32
|
36
|
40
|
44
|
48
|
52
|
56
|
60
|
64
|
68
|
72
|
76
|
80
|
84
|
88
|
92
|
96
)
$
)
/
Open regex in editor
Description
with Leap Year support (dd/MM/yyyy)
Submitted by
gdZeus (uploaded by limker)
-
8 years ago