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,000 community submitted regex patterns...
1
AutoDateRegex
PCRE (PHP <7.3)
Regex for date for example in saved reports (01m-1y) beginning of last month Format -> dmy
Submitted by
Mayer@netgo.org
-
10 years ago
1
cross platform file extension in node/io.js
ECMAScript (JavaScript)
This regex will match the file extension on any platform in node.js or io.js.
Submitted by
Russell Dempsey
-
10 years ago
1
Credit Card finder
PCRE (PHP <7.3)
Captures credit card looking sequence of digits Luhn validation remains required as a complement.
Submitted by
OP
-
10 years ago
1
How to document a regex? Example 1
PCRE (PHP <7.3)
How to document a regex? Example 1: undocumented Regex which works with my test string
Submitted by
Thomas
-
10 years ago
1
How to document a Regex? Example 2
PCRE (PHP <7.3)
How to document a Regex? Example 2: added documentation using (?#)
Submitted by
Thomas
-
10 years ago
1
daily 204
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Log entry Regex
PCRE (PHP <7.3)
no description available
Submitted by
KP
-
10 years ago
1
image.ext check
PCRE (PHP <7.3)
regexp for match images extension (png,jpg,jpeg,gif)
Submitted by
dummy
-
10 years ago
1
Nome articolo
PCRE (PHP <7.3)
Matcha il nome di un articolo (primo carattere, almeno 2 numeri=
Submitted by
DD
-
10 years ago
1
CamelCase parsing helper
Python
Helper regex for parsing CamelCase identifiers. Captures the first word of the identifier in group 1 and the rest in group 2. Iterate to consume the whole name. Works on fooBar, FooBar, and FOOBar.
Submitted by
Kevin
-
10 years ago
1
lisp
PCRE (PHP <7.3)
match function names in defun constructs
Submitted by
anonymous
-
10 years ago
1
Goto next code field
Python
Finds the next 'fieldish' part of the code like after equals or brackets or comma.
Submitted by
anonymous
-
10 years ago
1
border syntax checker
PCRE (PHP <7.3)
Checks the css value for a border
Submitted by
Benjamin Weigt
-
10 years ago
1
Indonesia Post Code
PCRE (PHP <7.3)
no description available
Submitted by
respeto
-
10 years ago
1
Search for Qualifications
PCRE (PHP <7.3)
This will identify M.D.'s and D.O.s, regardless of punctuation (within reason) and exclude similar matches (e.g., DMD)
Submitted by
anonymous
-
10 years ago
1
Google Sheets Reference Formula
ECMAScript (JavaScript)
Matches and extracts the relevant parts of reference formulas from Google Sheets. For instance: ='Test Sheet'!H$5
Submitted by
anonymous
-
10 years ago
1
Pinguino regex
Python
Used for replace words from .pdl
Submitted by
anonymous
-
10 years ago
1
Single Mustache
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Removes C-like comments
Python
no description available
Submitted by
Gabriel Olivério
-
10 years ago
1
Parse an HL7 date, and capture the components
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
...
588
589
590
591
592
...
900
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(
3
[
47
]
[
0
-
9
]
{13}
|
3
(?:
0
[
0
-
5
]
|
[
68
]
[
0
-
9
]
)
[
0
-
9
]
{11}
|
4
[
0
-
9
]
{12}
(?:
[
0
-
9
]
{3}
)?
|
5
[
1
-
5
]
[
0
-
9
]
{14}
|
6
(?:
011
|
5
[
0
-
9
]
{2}
)
[
0
-
9
]
{12}
|
(?:
2131
|
1800
|
35
\d
{3}
)
\d
{11}
)
/
g
Open regex in editor
Description
Captures credit card looking sequence of digits Luhn validation remains required as a complement.
Submitted by
OP
-
10 years ago