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 8,180 community submitted regex patterns...
2
match those lines whose first n chars contains 1+ non numeric
Python
1100582367|SDFDSFDSFDSFDSFDF GBC213WREW|RWEFSDFSDF 1100582377|DSFDSFDSFDSF 2NDG.S.D BIKADSFDSFDSFNO.421 1100582387|SDFSDFSDFDSF
Submitted by
sid
-
8 years ago
2
Port validator
Python
Validates port numbers from 1 to 65535
Submitted by
Agustín Bouillet
-
8 years ago
3
Multiple emails seperated with comma
ECMAScript (JavaScript)
Multiple emails seperated with comma allowed multiple dot ltds
Submitted by
Hassan Youssef
-
8 years ago
1
Phone Number
ECMAScript (JavaScript)
Allows a phone number in the following format: (123) 123-1234 The space is optional
Submitted by
Tom G.
-
8 years ago
3
Find css lines with px sizing
ECMAScript (JavaScript)
Use to find css sizing that migh need conversion to vs or alike.
Submitted by
Bob
-
8 years ago
3
File name Cleanup
ECMAScript (JavaScript)
Strips all non "A-Z,a-z,0-9+-_" characters and replaces them with a single "-"
Submitted by
Apsis0215
-
8 years ago
3
Capture Query Strings
Python
A solution for capture query params.
Submitted by
Rafael Laurindo
-
8 years ago
1
Phone Number
ECMAScript (JavaScript)
Between 8 and 10 Digits, no spaces
Submitted by
anonymous
-
8 years ago
3
IBAN
ECMAScript (JavaScript)
The complete regex for IBAN numbers
Submitted by
anonymous
-
8 years ago
3
Sql Injection detection
ECMAScript (JavaScript)
this regex detect any sql injections .
Submitted by
Saeed.Tabrizi@gamil.com
-
8 years ago
3
Email
Python
Python
Submitted by
anonymous
-
8 years ago
3
Markdown link rewriting
ECMAScript (JavaScript)
A regular expression which finds all instances of markdown links and helps with rewriting link paths.
Submitted by
Will Vaughn
-
8 years ago
3
Thorough UK Postcode Validator with In/Out code capture groups
Python
A more thorough UK postcode validator tested against all UK postcodes on a regular basis, but excluding the special GIRO postcode case out of personal preference. Additionally has capture groups for the In-code and Out-code sections. Requires case insensitive matching.
Submitted by
Chris G
-
8 years ago
2
Regex tutorial
Java 8
Case insensitive match the whole word betwween \bword\b
Submitted by
anonymous
-
4 years ago
(Last modified a year ago)
3
National Insurance Number regular expression
PCRE2 (PHP >=7.3)
This regular expression is build from the description of NINO number of GOV.UK,
Submitted by
Iftakhar Husan
-
3 years ago
3
Email
ECMAScript (JavaScript)
This is a bit simpler version that is still quite robust. It was taken from a Formik example.
Submitted by
codefinity
-
3 years ago
3
Livestock - Visual tag and Back tag
PCRE2 (PHP >=7.3)
Visual tag and Back tag cannot more than 15 characters or only can contain uppercase, lowercase, space and dash.
Submitted by
Adrian Yim
-
3 years ago
3
discord invite link
ECMAScript (JavaScript)
detect discord invite links such as: discord.gg/link discord.com/invite/link .gg/link .com/invite/link...
Submitted by
padero
-
3 years ago
3
camelCase2snake_case
PCRE2 (PHP >=7.3)
Convert camelCase to snake_case def camelCase2snake_case(txt): """ Convert camelCase to snake_case https://regex101.com/library/wUcSv4...
Submitted by
JV-conseil
-
a year ago
3
Discord ID:NAME#DISCRIM match
PCRE2 (PHP >=7.3)
For example, using `Carl-bot to dump members of the @everyone role ordering highest of id`: `!dump @everyone %i:%u -o id` Example of return: 498984530968051713:lanjt#2129 ......
Submitted by
lanjt
-
3 years ago
1
...
14
15
16
17
18
...
409
AMCC
0
Regular Expression
Python
r"
(
[^
]
*
)
,
\"
(
[^
]
*
)
\"
,
\"
(
[^
]
*
)
\"
,
\"
(
[^
]
*
)
\"
,
\"
(
[^
]
*
)
\"
,
\"
(
[^
]
*
)
\"
"
Open regex in editor
Description
no description available
Submitted by
anonymous
-
9 years ago