Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
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)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,300 community submitted regex patterns...
1
cross platform file extension in node/io.js
Created
·
2015-03-03 03:04
Flavor
·
ECMAScript (JavaScript)
This regex will match the file extension on any platform in node.js or io.js.
Submitted by
Russell Dempsey
1
Credit Card finder
Created
·
2015-03-03 10:27
Flavor
·
PCRE (Legacy)
Captures credit card looking sequence of digits Luhn validation remains required as a complement.
Submitted by
OP
1
How to document a regex? Example 1
Created
·
2015-03-03 14:27
Flavor
·
PCRE (Legacy)
How to document a regex? Example 1: undocumented Regex which works with my test string
Submitted by
Thomas
1
How to document a Regex? Example 2
Created
·
2015-03-03 14:36
Flavor
·
PCRE (Legacy)
How to document a Regex? Example 2: added documentation using (?#)
Submitted by
Thomas
1
daily 204
Created
·
2015-03-04 10:40
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
1
Log entry Regex
Created
·
2015-03-04 22:30
Flavor
·
PCRE (Legacy)
no description available
Submitted by
KP
1
image.ext check
Created
·
2015-03-06 06:55
Flavor
·
PCRE (Legacy)
regexp for match images extension (png,jpg,jpeg,gif)
Submitted by
dummy
1
Nome articolo
Created
·
2015-03-07 08:41
Flavor
·
PCRE (Legacy)
Matcha il nome di un articolo (primo carattere, almeno 2 numeri=
Submitted by
DD
1
CamelCase parsing helper
Created
·
2015-03-07 18:01
Flavor
·
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
1
lisp
Created
·
2015-03-10 23:58
Flavor
·
PCRE (Legacy)
match function names in defun constructs
Submitted by
anonymous
1
Goto next code field
Created
·
2015-03-11 11:20
Flavor
·
Python
Finds the next 'fieldish' part of the code like after equals or brackets or comma.
Submitted by
anonymous
1
border syntax checker
Created
·
2015-03-11 11:27
Flavor
·
PCRE (Legacy)
Checks the css value for a border
Submitted by
Benjamin Weigt
1
Indonesia Post Code
Created
·
2015-03-11 15:45
Flavor
·
PCRE (Legacy)
no description available
Submitted by
respeto
1
Search for Qualifications
Created
·
2015-03-11 19:58
Flavor
·
PCRE (Legacy)
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
1
Google Sheets Reference Formula
Created
·
2015-03-12 20:53
Flavor
·
ECMAScript (JavaScript)
Matches and extracts the relevant parts of reference formulas from Google Sheets. For instance: ='Test Sheet'!H$5
Submitted by
anonymous
1
Pinguino regex
Created
·
2015-03-13 04:58
Flavor
·
Python
Used for replace words from .pdl
Submitted by
anonymous
1
Single Mustache
Created
·
2015-03-13 22:24
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
1
Removes C-like comments
Created
·
2015-03-16 13:06
Flavor
·
Python
no description available
Submitted by
Gabriel Olivério
1
Parse an HL7 date, and capture the components
Created
·
2015-03-18 14:02
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
1
FLISR group match
Created
·
2015-03-19 00:20
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
Previous page
1
…
145
146
147
148
149
…
915
Next page
Community Library Entry
1
Regular Expression
Created
·
2015-03-03 10:27
Flavor
·
PCRE (Legacy)
/
(
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