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 9,220 community submitted regex patterns...
1
Android package name
PCRE (PHP <7.3)
Validation of android package names. Read more
Submitted by
Paldom
-
8 years ago
1
Return XML tag where attribute value equals X
PCRE (PHP <7.3)
Return XML tag where attribute value equals X
Submitted by
anonymous
-
8 years ago
1
Get the name of the image
PCRE (PHP <7.3)
This regex will be getting the name of the image source: data/products/cocacola/logo_new_version.jpg match: logo_new_version It will be returned logo_new_version on image index...
Submitted by
strubloid
-
8 years ago
1
Password minimum requirements
PCRE (PHP <7.3)
Password requirements (minimum length, character groups that must exist) can be easily validated AND extended using look-aheads.
Submitted by
OnlineCop
-
8 years ago
1
Floating Point number verifier and extractor with scientific notation support
PCRE (PHP <7.3)
The regex verifies floating point numbers in decimal or scientific notation with extensive error checking - however, there may be edge cases which i haven't addressed, so feel free to put in more unit tests!
Submitted by
Tamoghna Chowdhury
-
8 years ago
1
RFC-1034- and RFC-2181-compliant FQDN extractor
PCRE (PHP <7.3)
The specification for this regex is based upon the extracts from RFC 1034 and RFC 2181 below. It is also assumed that you are trying to extract the FQDN from a pipe-delimited string. If this is not the case then you will need to adjust the regex as necessary by either removing the pipe character o...
Submitted by
0jag
-
8 years ago
1
Extract the only the Nth field from a delimited string
PCRE (PHP <7.3)
The aim of this regex is to extract only the Nth field from a delimited string. In the example provided the delimited is the pipe character. You will have to substitute the pipe character for whatever delimiter you are using.
Submitted by
0jag
-
8 years ago
1
Remove Markdown Links
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Make PHP var_dump() output more compact
PCRE (PHP <7.3)
The PHP function var_dump() provides debugging output, but has more line-breaks than is needed for readability. This regex strips out the (in my eyes) unnecessary line-breaks. Good in a self written debugging method in combination with ob_start()and ob_get_contents().
Submitted by
Doqnach
-
8 years ago
1
URL Slugs Optimized
PCRE (PHP <7.3)
This slug regex is optimized using strictly my own opinions. Slugs: Should be english, alphanumeric phrases separated with a single dash. Should not contain single alpha character between dashes. ...
Submitted by
Jordon Baade
-
8 years ago
1
A revised e-mail validation regular expression
PCRE (PHP <7.3)
This one allows to begin with a digit, however, sometimes e-mail should begin with an *English letter *
Submitted by
anonymous
-
8 years ago
1
Youtube ID Extractor
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
Telegram bot deep linking
PCRE (PHP <7.3)
Telegram bot deep linking Telegram bots have a deep linking mechanism, that allows for passing additional parameters to the bot on startup. It could be a command that launches the bot — or an auth token to connect the user's Telegram account to their account on some external service. ...
Submitted by
SadeghPM@gmail.com
-
7 years ago
1
Localhost/private ip origin check
PCRE (PHP <7.3)
Used by CORS to check for localhost/private IP origins Check out the unit tests at /r/2Ofume/1/tests
Submitted by
ngokimphu
-
7 years ago
1
Formatar CPF
PCRE (PHP <7.3)
Retorna um cpf no formato 123.456.789-11. Cpf de entrada deve conter apenas números
Submitted by
anonymous
-
7 years ago
1
Matching email addresses per RFC5322
PCRE (PHP <7.3)
The BNF rules from RFC 5322 transformed to PCRE by Nikita Popov and described in the post http://nikic.github.io/2012/06/15/The-true-power-of-regular-expressions.html.
Submitted by
Michael Musson
-
7 years ago
1
Matching an Saudi Postal Code
PCRE (PHP <7.3)
Saudi Postal Code has five digits, if you would to have more information check the below: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ First Digit (Postal Regions): "The postal region number is represented by the first digit of the postal code" ...
Submitted by
Fares Alarabi
-
7 years ago
1
Email matching with a grain of salt
PCRE (PHP <7.3)
Inspired by Micheal Musson entry Wich was hard to use in regex flavours that don't support recursion (C# engine doesn't) i've build my own simpler version wich matches what i would accept as validation entry
Submitted by
Luigi Trabacchin
-
7 years ago
1
ethereum address
PCRE (PHP <7.3)
Check validity of ethereum address
Submitted by
CorentinGC
-
7 years ago
1
Contraseña Fuerte
PCRE (PHP <7.3)
Valida que la contraseña deba estar compuesta por una mayúscula, minúscula y números con un rango de caracteres desde 8 hasta 16 dígitos. Ejemplo Aropd123 Argpd 123
Submitted by
Nelson Wandurraga
-
7 years ago
1
...
178
179
180
181
182
...
461
Community Library Entry
3
Regular Expression
Golang
`
(?i)
^
(?:
(
[
a
-
z0
-
9-
]
+
|
\*
)
\.
)?
(
[
a
-
z0
-
9-
]
{1,61}
)
\.
(
[
a
-
z0
-
9
]
{2,7}
)
$
`
gm
Open regex in editor
Description
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
8 years ago