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 2,880 community submitted regex patterns...
0
Date Range Pattern
PCRE2 (PHP >=7.3)
Patternmatching of several Daterange Patterns Quarter 2021-Q2 Range...
Submitted by
Stefc
-
2 years ago
0
Split number and string
PCRE2 (PHP >=7.3)
Split number and string exp. data as below 17091327 Ren Xian Xtrcb County Bank Corporation Limited 50156 0862315402 19D 17091342 BaoDing QingYuan District Xtrcb Rural Bank Corporation Limit40156 0862315401 19D
Submitted by
anonymous
-
2 years ago
0
Email Regex
PCRE2 (PHP >=7.3)
email regex
Submitted by
anonymous
-
2 years ago
0
regex_honoraires_vf_3
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
0
regex_honoraires_vf_2
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
0
regex_honoraires_prix
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
2
Pattern for usual email address
PCRE2 (PHP >=7.3)
Intentionally leaves out weird stuff such as IPV4 or IPV6 for the domain part and quoted usernames with invalid chars in the addressee part. Handles internationalized domains with soft validation (only structural matching) and blocks domain parts starting or ending with dashes or containing double d...
Submitted by
Victor Schröder
-
2 years ago
1
Grabbing custom structure from markdown
PCRE2 (PHP >=7.3)
:)
Submitted by
anonymous
-
2 years ago
0
Russian phone
PCRE2 (PHP >=7.3)
Russian phone regex
Submitted by
Gor Sargsyan
-
2 years ago
1
MyKad / Passport
PCRE2 (PHP >=7.3)
This allows only the specified characters to be a valid MyKad or Passport Number in Malaysia.
Submitted by
Munirul Haikal
-
2 years ago
0
Search for strings being used as booleans
PCRE2 (PHP >=7.3)
We had an issue wherein people were attempting to use strings as booleans in JavaScript. E.G.: return ( {thisIsAString && ... )...
Submitted by
Nedron
-
2 years ago
0
Calcul detect
PCRE2 (PHP >=7.3)
Find operation in string (used in my personnal project)
Submitted by
anonymous
-
2 years ago
0
match mail adress
PCRE2 (PHP >=7.3)
match mail adress
Submitted by
anonymous
-
2 years ago
0
Password
PCRE2 (PHP >=7.3)
Vérifie si le mot de passe contient Entre 8 - 50 caractères 1 majuscule 1 minuscule 1 symbole
Submitted by
anonymous
-
2 years ago
0
Nginx rewrite rule to match all urls except .well-known (letsencrypt challenge validation)
PCRE2 (PHP >=7.3)
Will match typical urls such as: / /somepage /some/nested/page Will not match URLs starting with...
Submitted by
anonymous
-
2 years ago
0
Match any pattern abc.def.***.uvw.xyz hackerRank
Java 8
This regex matches any pattern like in the title. HackerRank challenge modified.
Submitted by
anonymous
-
2 years ago
0
International Standard Book Number
PCRE2 (PHP >=7.3)
This pattern checks for the format according to the International ISBN Agency standard e.g. '978-3-16-148410-0'. Source: https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s13.html. NOTE: it does not validate if it is an actual ISBN number. It only validates the format.
Submitted by
Regular Expressions Cookbook, 2nd Edition by Jan Goyvaerts, Steven Levithan
-
2 years ago
1
Specific Year Dates (Regular Expression)
Java 8
Here's a regular expression to handle a specific year in the different forms of dates: YYYY-MM-DD DD-MM-YYYY MM-DD-YYYY ...
Submitted by
loganmcampbell
-
2 years ago
1
9 Digit SSN String
Java 8
If for whatever reason there isn't a delimiter within your data to for storing your SSNs you should be able to use this regular expression to capture 9 digit strings within data. You might need to add special keywords to filter out false positives.
Submitted by
loganmcampbell
-
2 years ago
1
Facebook IDs
Java 8
A general regular expression that uses the keywords 'Facebook' and 'id' to collect strings that contain Facebook IDs. Also, added an additional condition to where if there's a long numeric string it will be match a group given that, 'Facebook' is within the string. This is a special use-case and can...
Submitted by
loganmcampbell
-
2 years ago
1
...
82
83
84
85
86
...
144
Capture Mail
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
MAIL
\s
+
:
)
(
(
[
a
-
zA
-
Z0
-
9_
\-\.
]
+
)
@
(
[
a
-
zA
-
Z0
-
9_
\-\.
]
+
)
\.
(
[
a
-
zA
-
Z
]
{2,5}
)
)
\s
+
(
(
[
a
-
zA
-
Z0
-
9_
\-\.
]
+
)
@
(
[
a
-
zA
-
Z0
-
9_
\-\.
]
+
)
\.
(
[
a
-
zA
-
Z
]
{2,5}
)
)
/
m
Open regex in editor
Description
Calcolo 1° indirizzo mail da stringa con indirizzo fisso.
Submitted by
Alessandro
-
2 years ago