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 15,560 community submitted regex patterns...
0
DEV-42915
PCRE (PHP <7.3)
DEV-42915
Submitted by
anonymous
-
6 years ago
0
身份证
ECMAScript (JavaScript)
^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))((0-2)|10|20|30|31)\d{3}[0-9Xx]$
Submitted by
anonymous
-
6 years ago
0
js sql Apply function and alias to parameter (first match)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
REGEX
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Pradzia
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
REGEX
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Pradzia
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Allow 24 hour times without seconds
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Allow 24 hour time formats, optionally with seconds
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Flip switch mapping
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Regex for telephone numbers all over the world
PCRE (PHP <7.3)
Detects and validates most of the phone numbers all over the world
Submitted by
Aditya Joshi
-
6 years ago
0
Email Last Hop v6
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
B-Online Services
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
[code vba] pad string lines with space p1
PCRE (PHP <7.3)
This two-step find-replace routine is intended create string vars from text like this: original text: This is A block of text I want to move To my code...
Submitted by
anonymous
-
6 years ago
0
[code vba] pad string lines with space p1
PCRE (PHP <7.3)
This two-step find-replace routine gets you from MAX( MAX( MAX( to exprS = exprS & TrimRight("MAX( ") & _...
Submitted by
anonymous
-
6 years ago
0
[code vba] pad string lines with space p2
PCRE (PHP <7.3)
This two-step find-replace routine gets you from MAX( MAX( MAX( to exprS = exprS & TrimRight("MAX( ") & _...
Submitted by
anonymous
-
6 years ago
0
align text in columns p1
PCRE (PHP <7.3)
part 1 of two-step replacement routine: before: abc def gh gk n opq after:...
Submitted by
anonymous
-
6 years ago
0
align text in columns p2
PCRE (PHP <7.3)
part 2 of two-step replacement routine: before: abc def gh gk n opq after:...
Submitted by
anonymous
-
6 years ago
0
align text in columns p2
PCRE (PHP <7.3)
part 2 of two-step replacement routine: before: abc def gh gk n opq after:...
Submitted by
anonymous
-
6 years ago
0
fetch name and other details
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
...
469
470
471
472
473
...
778
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(?(DEFINE)
(?'loc_part'
[
\w
!#$%&'*+
\-\/
=?^`{|}~
]
+
)
(?'loc'
\g'loc_part'
(?:
\.
\g'loc_part'
)*
)
(?'subdom'
[
a
-
z
]
(?:
[
a
-
z
\d
-
]
*
[
a
-
z
\d
]
)?
)
(?'tld'
[
a
-
z
]
{2,6}
)
)
(?'local'
\g'loc'
)
@
(?'domain'
(?:
\g'subdom'
\.
)+
\g'tld'
)
/
ixg
Open regex in editor
Description
match some emails and extract their local part and domain
Submitted by
dang duomg 191
-
4 months ago
(Last modified 4 months ago)