Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
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)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among community submitted regex patterns...
0/512
485
regex101.com permalink id grabber
Created
·
2013-12-12 13:09
Updated
·
2024-04-11 14:32
Flavor
·
PCRE (Legacy)
Grabs the ID for the regex101.com permalink code. If a revision number is provided, grab that as well.
Submitted by
chris mccoy
238
Matching email addresses per RFC5322
Created
·
2013-10-23 17:46
Flavor
·
PCRE (Legacy)
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
107
ECMAScript/JavaScript trim
Created
·
2013-09-10 08:21
Updated
·
2024-09-19 14:38
Flavor
·
ECMAScript (JavaScript)
Trim leading and trailing whitespace from a string.
Submitted by
fp
73
Regex for telephone numbers all over the world
Created
·
2014-04-08 07:58
Updated
·
2023-10-09 14:47
Flavor
·
ECMAScript (JavaScript)
Recommended
·
Detects most of the phone numbers all over the world
Submitted by
Aditya Joshi
41
URL regexp
Created
·
2013-01-14 17:52
Flavor
·
PCRE (Legacy)
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
19
Date: DD-MM-YYYY hh:mm:ss
Created
·
2013-05-17 13:07
Flavor
·
PCRE (Legacy)
Recommended
·
Validate and capture dateTime parts, includes validation for leap years, range 1000-2999. Fixed bug
Submitted by
Ka.
87
Password Validation
Created
·
2015-07-08 18:46
Flavor
·
ECMAScript (JavaScript)
Checks that a password has a minimum of 6 characters, at least 1 uppercase letter, 1 lowercase letter, and 1 number with no spaces.
Submitted by
Christian Klemp
35
http://
Created
·
2014-03-26 06:44
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Mitus M.
53
Disorted Email Addresses
Created
·
2013-01-16 14:11
Flavor
·
PCRE (Legacy)
Matches distorted email addresses and converts them back to real ones.
Submitted by
dislick
83
Distinguish torrent files (series vs movies)
Created
·
2014-06-26 09:59
Updated
·
2023-07-20 15:08
Flavor
·
Python
A neat regex for finding out whether a given torrent name is a series or a movie. Returns the full name of the series with the separator needed to make it pretty (ie, replace it with space or what you want). Also returns the season number or the year for the movie/series, depending on what was previously matched.
Submitted by
Firas Dib
6
Password
Created
·
2013-12-06 14:02
Updated
·
2023-07-21 04:59
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
31
Email address (most used)
Created
·
2015-07-01 09:32
Flavor
·
ECMAScript (JavaScript)
Email address, most used cases
Submitted by
Jago
35
Google like regex
Created
·
2014-05-12 13:35
Flavor
·
ECMAScript (JavaScript)
Attempts to mimic Google search box behavior, returning an array with the separated search strings (that keep the +/- indicator for following operations)
Submitted by
mettjus
18
Email validation
Created
·
2014-09-16 13:45
Flavor
·
PCRE (Legacy)
no description available
Submitted by
tutsplus.com
16
Alphanumeric Regex
Created
·
2015-06-15 13:57
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Deepan
4
Phone number
Created
·
2015-06-23 19:15
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Mark Landry
14
Phone Number
Created
·
2015-08-11 17:07
Flavor
·
ECMAScript (JavaScript)
Allows phone numbers with optional country code, optional special characters and whitespace
Submitted by
Tlmader
26
match valid JSON
Created
·
2014-11-17 20:47
Flavor
·
PCRE (Legacy)
Matches any valid JSON object, matches recursively. Passes all JSON test cases I found.
Submitted by
Mateon1
16
Password
Created
·
2015-04-28 16:49
Flavor
·
ECMAScript (JavaScript)
Safe Password that allow only with a number, a lowercase, a uppercase, and a special character
Submitted by
davidlondono
23
userName
Created
·
2015-06-06 08:00
Flavor
·
PCRE (Legacy)
1-15 alphanumeric login name
Submitted by
gsanchezc
Community Library Entry
1
Regular Expression
Created
·
2023-10-25 08:48
Flavor
·
PCRE2 (PHP)
/
(?<phone>
(
\+
?
\d
{1,4}?
[
-.
\s
]
?
)?(
\(
\d
{1,4}?
\)
)?
[
-.
\s
]
?
\d
{1,4}
[
-.
\s
]
?
\d
{1,4}
[
-.
\s
]
?
\d
{1,9}
)
|
(?<email>
[
\w
\-
][
\w
\-\.
]
+
@
[
\w
\-
][
\w
\-\.
]
+
[
a
-
zA
-
Z
]
{1,4}
)
/
gi
Open regex in editor
Description
Extract the phone numbers and email addresses from a string
Submitted by
Mukesh Jangid