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,020 community submitted regex patterns...
3
Get any positive integer
PCRE (PHP <7.3)
All real numbers can be divided into three categories: positive, negative and zero; Match all positive number Match: 2 9 ...
Submitted by
norihiori, Me-me
-
9 years ago
3
IBAN
ECMAScript (JavaScript)
The complete regex for IBAN numbers
Submitted by
anonymous
-
8 years ago
3
Song Splitter
PCRE (PHP <7.3)
Split an audio filename into a readable format for playlists (like jPlayer) assuming the audio file is named like the following: Artist - Song Title.mp3 Band Name - Track Title ft. Another Artist.m4a demon.devin - Faithless Angel (to no avail remix).mp3
Submitted by
demon.devin
-
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
3
Hostname validation
Golang
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
8 years ago
3
strong password validation
PCRE (PHP <7.3)
This regex matches only when all the following are true: password has minimum 2 uppercase letters password has minimum 2 lowercase letters password has minimum 2 numerals (0-9) password has minimum 2 special characters, of the group !@#$%^&*()-_=+{};:, password has no more than 2 consecutive identic...
Submitted by
anonymous
-
7 years ago
3
HSL(A) Color Matching
PCRE (PHP <7.3)
This allows for both hsl and hsla color patterns to be matched. hsla(50.5deg, .531%, .9%, 1.0) The hue can be matched without the word deg. Hue is from 0-360 Percentage allows for decimals. Percentage is from 0-100%...
Submitted by
anonymous
-
5 years ago
3
Full Best URL Regex Match
PCRE (PHP <7.3)
Best Full URL Regex to match URL, This is simple and can match 64K of url regex under 77ms Regex Matches All Below and more: https://example.domain http://example.domain...
Submitted by
divineniiquaye
-
4 years 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
-
4 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
-
4 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
-
4 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
-
4 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
-
2 years 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
3
mega.nz files and folders
PCRE2 (PHP >=7.3)
Regex for matching https://mega.nz file and folder URLs. https://github.com/tonikelope/megabasterd/issues/215
Submitted by
anonymous
-
3 years ago
3
example
PCRE2 (PHP >=7.3)
example
Submitted by
anonymous
-
3 years ago
3
Viet Nam Phone Number
ECMAScript (JavaScript)
Viet Nam Phone Number Regex. This regex include: Cellphone number: Viettel, Vinaphone, Mobiphone, Vietnamobile, Iteltelecom, Reddi (055) Telephone number (such as: 024, 028,...) Start with Exactly 10 or 11 numbers
Submitted by
tuangt12
-
3 years ago
1
...
886
887
888
889
890
...
901
Community Library Entry
3
Regular Expression
PCRE (PHP <7.3)
/
(
\s
*
-en
|
\s
*
-en-us
|
\s
*
-us
)
$
/
mg
Open regex in editor
Description
no description available
Submitted by
Branden
-
10 years ago