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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 5,800 community submitted regex patterns...
1
Simple TIN number regex
PCRE2 (PHP >=7.3)
Only accept numerics/digits and hyphens, forbidding them at the start and the end of the number, and avoid two consecutive occurrences. The length of the input is limited by the app.
Submitted by
Sowed Castelli
-
3 years ago
1
Simple Phone Number validation
PCRE2 (PHP >=7.3)
Default to 8 characters maxInput and minInput 14 characters Regular Expression ^(?![ -])(?!.[- ]$)(?!.[- ]{2})[0-9- ]+$ Allows digits 0-9, and the single white spaces and single hyphens - characters, but restricts the spaces and hyphens at the start, end, and repetitions between the value. Note...
Submitted by
Sowed Castelli
-
3 years ago
(Last modified 3 years ago)
1
Simple TIN number regex
PCRE2 (PHP >=7.3)
Only accept numerics/digits and hyphens, forbidding them at the start and the end of the number, and avoid two consecutive occurrences.
Submitted by
Sowed Castelli
-
3 years ago
1
Simple ID verification
PCRE2 (PHP >=7.3)
Used to validate documents identifiers like passports and IDs, VISA numbers. Default to 6 characters min and max 30 characters for format tin-no, such as the Tax regisration number.- Regular Expression ^[a-zA-Z0-9 ]{6,30}$ Accepts both lowercase and uppercase letters, from a-z, digit, and white s...
Submitted by
Sowed Castelli
-
3 years ago
1
Simple email verification regex
PCRE2 (PHP >=7.3)
Regular Expression ^(?=a-z{5,40}$)[a-z0-9._-]{1,20}@(?:(?=[a-z0-9-]{1,15}\.)[a-z0-9]+(?:-[a-z0-9]+)*\.){1,2}[a-z]{2,6}$ By default, the app converts all the email value to lower case before validation. Please use regex101.com: email to analyse and validate the regex. The error message for an in...
Submitted by
Sowed Castelli
-
3 years ago
1
Signature of UNIFI Protect in SPLUNK for DHCP
PCRE2 (PHP >=7.3)
Pulls the DHCP Command from SPLUNK output
Submitted by
anonymous
-
3 years ago
0
Vbscript Class Property Signature extract
ECMAScript (JavaScript)
Extract property signature from vbscript
Submitted by
Praveen Kumar Nandagiri
-
3 years ago
0
Vbscript Function Signature Extract
ECMAScript (JavaScript)
Extract Function signature from vbscript using javascript style regex
Submitted by
Praveen Kumar Nandagiri
-
3 years ago
0
VBScript Sub Routine Signature Extract
ECMAScript (JavaScript)
Extract signature of the sub routine in Vbscript
Submitted by
Praveen Kumar Nandagiri
-
3 years ago
1
Instagram reel Id
PCRE2 (PHP >=7.3)
get instagram reels id
Submitted by
anonymous
-
3 years ago
1
Match String ( /* 1 */)
ECMAScript (JavaScript)
Matches the comment string from Robo3T exports
Submitted by
anonymous
-
3 years ago
(Last modified 2 years ago)
1
test
PCRE2 (PHP >=7.3)
test
Submitted by
tf
-
3 years ago
1
get zip code
ECMAScript (JavaScript)
this just matches the city credential followed by zipcode e.g: FL 18117
Submitted by
Gabriel Micah
-
3 years ago
1
phonebook
PCRE2 (PHP >=7.3)
remove all unwanted character from telephone numbers list
Submitted by
kp
-
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
0
Look ahead conditional
PCRE2 (PHP >=7.3)
/333 or /333/333
Submitted by
anonymous
-
3 years ago
0
Separator Regex
PCRE2 (PHP >=7.3)
Separator regex
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
0
Lookup for a duplicated set of characters {2,} (Two or more)
ECMAScript (JavaScript)
Lookup if a set of two or more characters show up again in the string. For JavaScript ECMAScript
Submitted by
rdmoedas
-
3 years ago
0
regexSecretWord
ECMAScript (JavaScript)
regSW
Submitted by
anonymous
-
3 years ago
1
...
138
139
140
141
142
...
290
Greater manchester postcode validation
1
Regular Expression
ECMAScript (JavaScript)
/
^
(
(
BL
[
0
-
9
]
{1,2}
)
|
(
(
BL
[
0
-
9
]
[
A
-
Z
]
)
|
(
(
M
[
0
-
9
]
{1,2}
)
|
((
M
[
0
-
9
]
[
A
-
Z
]
)|
((
OL
[
0
-
9
]
{1,2}
)|
((
OL
[
0
-
9
]
[
A
-
Z
]
)|
((
SK
[
0
-
9
]
{1,2}
)|
((
SK
[
0
-
9
]
[
A
-
Z
]
)|
((
WA
[
0
-
9
]
{1,2}
)|
((
WA
[
0
-
9
]
[
A
-
Z
]
)|
((
WN
[
0
-
9
]
{1,2}
|
((
WN
[
0
-
9
]
[
A
-
Z
]
)))))))))))
)
)
)
[
0
-
9
]
[
A
-
Z
]
{2}
$
/
gm
Open regex in editor
Description
🤯
Submitted by
donivanes
-
3 years ago