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,780 community submitted regex patterns...
1
Match XML Self-Closing Tags
PCRE2 (PHP >=7.3)
comicdiversity.com
Submitted by
anonymous
-
7 days ago
1
Extract Dates in Long Format
PCRE2 (PHP >=7.3)
simplicitylabs.net
Submitted by
anonymous
-
7 days ago
1
Extract Phone Numbers (International)
PCRE2 (PHP >=7.3)
spooonful.com
Submitted by
anonymous
-
7 days ago
1
Extract HTML Attribute Values
PCRE2 (PHP >=7.3)
statussearch.net
Submitted by
anonymous
-
7 days ago
1
Extract Multi-Line Comments (JavaScript)
PCRE2 (PHP >=7.3)
sinceretheory.net
Submitted by
anonymous
-
7 days ago
1
Match Phone Numbers with Extensions
PCRE2 (PHP >=7.3)
canitbenews.com
Submitted by
anonymous
-
7 days ago
1
Match Lines Starting with Specific Word
PCRE2 (PHP >=7.3)
ecuadorminingnews.com
Submitted by
anonymous
-
7 days ago
1
Extract Non-Alphanumeric Characters
PCRE2 (PHP >=7.3)
thebuzzkillers.com
Submitted by
anonymous
-
7 days ago
1
Match Recursive Patterns (HTML-like)
PCRE2 (PHP >=7.3)
hackerchat.co
Submitted by
anonymous
-
7 days ago
1
Find Number with Units (e.g., 10kg, 5m)
PCRE2 (PHP >=7.3)
ericaleerhsen.net
Submitted by
anonymous
-
7 days ago
1
Extract Key-Value Pairs
PCRE2 (PHP >=7.3)
gennexbrands.com
Submitted by
anonymous
-
7 days ago
1
Match Balanced Brackets
PCRE2 (PHP >=7.3)
popninjas.com
Submitted by
anonymous
-
7 days ago
1
Match Text with Optional Tags
PCRE2 (PHP >=7.3)
thestorrier.com
Submitted by
anonymous
-
7 days ago
1
Extract JSON Arrays
PCRE2 (PHP >=7.3)
raceonline2012.org
Submitted by
anonymous
-
7 days ago
1
Extract CSV Rows
PCRE2 (PHP >=7.3)
btcmarin.org
Submitted by
anonymous
-
7 days ago
1
Match Complex Nested Parentheses
PCRE2 (PHP >=7.3)
selectview.org
Submitted by
anonymous
-
7 days ago
1
Match Date and Time (ISO 8601)
PCRE2 (PHP >=7.3)
buzzword101.com
Submitted by
anonymous
-
7 days ago
1
Match Floating Point Numbers
PCRE2 (PHP >=7.3)
smartwrap.net
Submitted by
anonymous
-
7 days ago
1
Match Currencies with Optional Symbols
PCRE2 (PHP >=7.3)
thewebsbest.net
Submitted by
anonymous
-
7 days ago
1
Match US ZIP+4 Codes
PCRE2 (PHP >=7.3)
startupcrunch.org
Submitted by
anonymous
-
7 days ago
1
...
129
130
131
132
133
...
139
Locale ICU validator
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
a
-
zA
-
Z
]
{2,3}
)
(
(
[
\-\_
]
[
a
-
zA
-
Z
]
{4}
)+
)?
(
[
\-\_
]
[
a
-
zA
-
Z
]
{2}
)?
(
[
\-\_
]
[
a
-
zA
-
Z
]
*
)?
(
@
(
collation
|
calendar
|
currency
|
numbers
)
\=
[
a
-
zA
-
Z
]
*
[
;
]
?
(
(
collation
|
calendar
|
currency
|
numbers
)
\=
[
a
-
zA
-
Z
\-\_
]
*
[
;
]
?
)*
)?
/
gm
Open regex in editor
Description
Regexp to match against a
icu locale string
Submitted by
Sylvain Combes
-
6 years ago