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 15,500 community submitted regex patterns...
1
Identification and Extraction of Iranian Mobile Phone Numbers Using Regex (Regular Expression)
PCRE2 (PHP >=7.3)
This regex is designed to identify and extract Iranian mobile phone numbers. By using the pattern ^(0098|\+98|98|0|)(9\d{9}$), this pattern allows you to recognize phone numbers in various formats, including international and local prefixes. This tool is particularly useful for programmers and data ...
Submitted by
Mohammad Mahdi Arbabpouri
-
22 days ago
2
**japanese text** to bold <b>japanese text</b>
PCRE (PHP <7.3)
japanese text to bold japanese text 食べるんだ 食べるんだ
Submitted by
kurokuroshii
-
22 days ago
(Last modified 22 days ago)
1
find first '-'
PCRE2 (PHP >=7.3)
find first '-' for replace other
Submitted by
anonymous
-
23 days ago
1
Domain Splitter (subdomains, domain, directory, current page)
PCRE2 (PHP >=7.3)
To test multiple domains, put a slash (/) at the end of each domain
Submitted by
tnarh
-
24 days ago
(Last modified 24 days ago)
1
Instagram hashtag regex
ECMAScript (JavaScript)
Simple and easy regex to find valid IG hastags in a string
Submitted by
Navanshu Rastogi - Febnik
-
25 days ago
(Last modified 25 days ago)
1
Matching Alphanumeric Strings with Underscores and Dashes
PCRE2 (PHP >=7.3)
techwiki.biz
Submitted by
anonymous
-
a month ago
1
Matching Variable Names (e.g., JavaScript, Python)
PCRE2 (PHP >=7.3)
tokotips.com
Submitted by
anonymous
-
a month ago
1
Matching Time in 12-Hour Format
PCRE2 (PHP >=7.3)
thedigitalnest.com
Submitted by
anonymous
-
a month ago
1
Matching Dates in MM-DD-YYYY Format
PCRE2 (PHP >=7.3)
techwiki.biz
Submitted by
anonymous
-
a month ago
1
Matching URL Parameters
PCRE2 (PHP >=7.3)
teamangelicvm.com
Submitted by
anonymous
-
a month ago
1
Matching Strings with No Special Characters
PCRE2 (PHP >=7.3)
planetwise.net
Submitted by
anonymous
-
a month ago
1
Matching Dates with Day of Week (e.g., Monday, August 14, 2024)
PCRE2 (PHP >=7.3)
mayurscanecorner.com
Submitted by
anonymous
-
a month ago
1
Match Valid Ethereum Address
PCRE2 (PHP >=7.3)
kontent.co.in
Submitted by
anonymous
-
a month ago
1
Match Valid Bitcoin Address
PCRE2 (PHP >=7.3)
insite09.com
Submitted by
anonymous
-
a month ago
1
Match Safe Filename
PCRE2 (PHP >=7.3)
gotacos.net
Submitted by
anonymous
-
a month ago
1
Match URL Path with Optional Query Params
PCRE2 (PHP >=7.3)
diversitystars.com
Submitted by
anonymous
-
a month ago
1
Validate Credit Card Expiration Date
PCRE2 (PHP >=7.3)
digitalogymedia.com
Submitted by
anonymous
-
a month ago
1
Match Email with Domain Validation
PCRE2 (PHP >=7.3)
derm-link.com
Submitted by
anonymous
-
a month ago
1
Extract Phone Number with Extension
PCRE2 (PHP >=7.3)
cashewa.com
Submitted by
anonymous
-
a month ago
1
Email with Optional Subdomain
PCRE2 (PHP >=7.3)
buzz3r.com
Submitted by
anonymous
-
a month ago
1
2
3
4
...
775
Full Name (Advanced)
1
Regular Expression
PCRE2 (PHP >=7.3)
/
^\s
*
(?:
[
a
-
z
]
{2,}
\.
\s
*
)?
(?:
[
a
-
zñ
]
{2,}
\s
*
[
a
-
zñ
]
*
,
\s
*
[
a
-
zñ
]
+
\s
*
[
a
-
zñ
]
*
(?:
[
a
-
zñ
]
\.
?
\s
*
){0,3}
|
[
a
-
zñ
]
+
\s
*
[
a
-
zñ
]
*
\s
+
(?:
[
a
-
zñ
]
\.
?
\s
*
){0,3}
[
a
-
zñ
]
{2,}
\s
*
[
a
-
zñ
]
*
)
\s
*
(?:
[
a
-
zñ.,
]
)*
$
/
gim
Open regex in editor
Description
Full Name convention either as "
firstname lastname
" or "
lastname, firstname
"
FirstName must be at least 1character long. LastName must be at least 2characters long.
Accepts multiple worded name
Optional Middle Initial (with period, up to 2 maximum initials). Placement either middle or last depending on full name convention.
Optional Name prefix (with period), Name suffix
Allowed alphabet characters only A to Z and Ñ. Allowed symbol are comma and period on valid places only. regex must be set ignore casing.
Forgiving extra whitespace typographical error.
Safely usable in VBA Regex.
Submitted by
cpq.pinoy
-
2 months ago
(Last modified 2 months ago)