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
MBI Format
Java 8
Medicare Beneficiary Identifier (MBI) Format https://www.cms.gov/medicare/new-medicare-card/understanding-the-mbi-with-format.pdf
Submitted by
Chee Cheng
-
3 years ago
(Last modified 3 years ago)
1
Simple AWS ARN Regex
ECMAScript (JavaScript)
Simple AWS ARN Regex
Submitted by
anonymous
-
3 years ago
0
identify duplicate consecutive words + word combinations to remove
PCRE2 (PHP >=7.3)
Identifies duplicate word and word combinations that exist consecutively within a string for removal. It is currently configured for up to 3 consecutive words but can be extended by adding additional (\s+\w)* to the first groups pattern match logic use with substitution val $1 good for removing d...
Submitted by
GrantO
-
3 years ago
1
Persian words
PCRE2 (PHP >=7.3)
Regex for find persian letters in a string
Submitted by
Hamed Faryabi
-
3 years ago
1
RegEx to add any valid US phone number inputs
PCRE2 (PHP >=7.3)
##examples of valid US phone number inputs *555-555-5555 *(555)555-5555 *(555) 555-5555 *555 555 5555...
Submitted by
@abhi00o7
-
3 years ago
1
Codice fiscale italiano
PCRE (PHP <7.3)
Regex completa per il CF. Controllo anche i casi di omocodia.
Submitted by
Virtualdummy
-
3 years ago
1
Greater manchester postcode validation
ECMAScript (JavaScript)
🤯
Submitted by
donivanes
-
3 years ago
1
Password requirements checker
PCRE2 (PHP >=7.3)
This regular expression allows you to simply check if a password matches with your conditions. By default it will require: 1 {1} uppercase letter [A-Z] or more 1 {1} lowercase letter [a-z] or more 1 {1} number [0-9] or more 1 {1} special character [@#$%^!&+=.\-_*] or more...
Submitted by
Pythack
-
3 years ago
(Last modified 3 years ago)
1
Youtube video link regular expression
PCRE2 (PHP >=7.3)
This regular expression allows you to test strings to see if they are youtube video links.
Submitted by
Pythack
-
3 years ago
1
Youtube channel link regular expression
PCRE2 (PHP >=7.3)
Regular expression for youtube channels links.
Submitted by
Pythack
-
3 years ago
1
Binary code regular expression
PCRE2 (PHP >=7.3)
Regular expression for binary code.
Submitted by
Pythack
-
3 years ago
1
Valid email regexp in Go
Golang
A regexp to validate an email address according to https://html.spec.whatwg.org/#valid-e-mail-address . Note that the backslash in the name part of the regexp on that site is there to escape the forward slash, which is not needed in Go.
Submitted by
markus@maragu.dk
-
3 years ago
1
regex_prix_DAB_V2
Python
nlp
Submitted by
guif
-
3 years ago
1
Regex Record SSH
PCRE (PHP <7.3)
Regex Record for Data from SSH scripting
Submitted by
anonymous
-
3 years ago
1
Catch Dodgy Steam Links
ECMAScript (JavaScript)
Catch Dodgy steam links Catches most if not all spam links that usually get spread in chat rooms
Submitted by
anonymous
-
3 years ago
1
utf-8 char in imap mail
Golang
Check golang for presence of utf-8 char in rawEmail e.g. ?= =?UTF-8?Q? or =?3D?UTF-8?Q?
Submitted by
oscarunix
-
3 years ago
1
Départements Francais
PCRE2 (PHP >=7.3)
Validation de l'ensemble des 101 départements français, incluant la Haute-Corse et la Corse-du-Sud, chaque département d'outre-mer indépendamment, et 99 pour l'étranger
Submitted by
mioux
-
3 years ago
1
regex_ddc_V3
Python
nlp
Submitted by
guif
-
3 years ago
1
regex_nox_ddc_V3
Python
nlp
Submitted by
guif
-
3 years ago
1
regex_ddc_V4
Python
nlp
Submitted by
guif
-
3 years ago
1
...
304
305
306
307
308
...
900
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
^
(
[
0
-
9
]
{2,3}
)
(
[
\s
.-
]
?
)
(
[
0
-
9
]
{3,4}
)
(
[
\s
.-
]
?
)
(
[
0
-
9
]
{4}
)
$
/
gm
Open regex in editor
Description
Rules for
Mexico
:
Numbers must be 10 digits long
Area code is either 2 or 3 digits
Remaining phone number has either 7 or 8 digits in groups of 3 or 4
Submitted by
anonymous
-
4 years ago