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 18,040 community submitted regex patterns...
1
Match the distinct letters used in a string
PCRE2 (PHP >=7.3)
This finds a letter and omits all other instances of that letter, leaving you only the distinct letters used in the string.
Submitted by
Ember B
-
a year ago
1
Get submodule paths from `git submodule status` output
PCRE2 (PHP >=7.3)
Useful for automation of making submodule paths as trusted folders for git.
Submitted by
Vadim Reutskii
-
a year ago
1
DATE FORMAT REGEX ALL COMBINAISIONS
PCRE2 (PHP >=7.3)
For the day: d Displays the day as a number without a leading zero (1-31). dd Displays the day as a number with a leading zero (01-31). ddd Displays the day as an abbreviation (Sun-Sat) dddd Displays the day as a full name (Sunday-Saturday) ...
Submitted by
EYA GHACHEM
-
a year ago
1
FORMAT DATE WITH NO SEPARATOR
PCRE2 (PHP >=7.3)
For the day: d Displays the day as a number without a leading zero (1-31). dd Displays the day as a number with a leading zero (01-31). ddd Displays the day as an abbreviation (Sun-Sat) dddd Displays the day as a full name (Sunday-Saturday) ...
Submitted by
EYA GHACHEM
-
a year ago
1
EU VAT numbers
PCRE2 (PHP >=7.3)
Based on this expression and updated Oct 2023 using wikipedia
Submitted by
Henk-Jan @ Cargoplot
-
a year ago
1
CFF-definitions.reference.PMCID (1.3.0)
PCRE2 (PHP >=7.3)
Pattern for validating a definitions.reference.pmcid value in the Citation File Format (CFF), v1.3.0
Submitted by
stephan druskat, jurriaan h. spaaks
-
a year ago
1
Validate email address (unicode)
ECMAScript (JavaScript)
Validate unicode email addresses
Submitted by
anonymous
-
a year ago
(Last modified 5 months ago)
1
Validate and split street and house number (trailing house number)
ECMAScript (JavaScript)
Validate and split street address (street and house number) with trailing house number
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
1
Validate and split street and house number (leading house number)
ECMAScript (JavaScript)
Validate and split street address (street and house number) with leading house number
Submitted by
anonymous
-
a year ago
1
INI Parser
PCRE2 (PHP >=7.3)
comments section key = value key = ltrim
Submitted by
foul11, raxdiam
-
a year ago
1
Get number user format
PCRE2 (PHP >=7.3)
Get number user format
Submitted by
blurzoom
-
a year ago
(Last modified a year ago)
1
12px
PCRE2 (PHP >=7.3)
查找替换
Submitted by
anonymous
-
a year ago
1
nomor telp lokal wakanda
ECMAScript (JavaScript)
indonesian telephone number
Submitted by
aku dewe
-
a year ago
1
testregexaa
PCRE2 (PHP >=7.3)
aaa
Submitted by
aaa
-
a year ago
1
ipv4 and ipv6 with mask in CIDR
PCRE2 (PHP >=7.3)
Match and validate both ipv4, ipv6 and CIDR notation mask!
Submitted by
Stefanos Mitropoulos
-
a year ago
1
Repeat character with custom symbol
PCRE2 (PHP >=7.3)
OK
Submitted by
UVT
-
a year ago
1
Group tags and lyrics
Python
Group tags and lyrics in one lrc file, multiple lines
Submitted by
Cricar
-
a year ago
1
Match each tag
Python
Match each tag in a lrc file
Submitted by
Cricar
-
a year ago
1
Extract tag name and its content
Python
Lrc file
Submitted by
Cricar
-
a year ago
1
Workaround for IIS rewrite rule redirects with urls
PCRE2 (PHP >=7.3)
Make sure http[s]:// uses two slashes, not one. IIS rewrite rules removes double slashes in the raw URL, breaking YOURLS (PHP) for example. This regexp changes all single slashes to double after a web protocol, including nested querystrings.
Submitted by
DeveloperDog
-
a year ago
(Last modified a year ago)
1
...
286
287
288
289
290
...
902
Community Library Entry
1
Regular Expression
Python
r"
(?P<street>
\d
+
\s.
*
?
(?:
,
\s
*
\w
*
\s
*
\d
+
)*
)
,
\s
*
(?P<city>
.
*
?
)
,
\s
*
(?P<state>
[
A
-
Za
-
z
]
+
)
\s
*
(?P<zip>
\d
+
)?
,
*
"
gm
Open regex in editor
Description
Complex address component capturing regex
Submitted by
anonymous
-
4 years ago