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 2,940 community submitted regex patterns...
1
Lua Syntax
PCRE2 (PHP >=7.3)
finds and replaces square bracketed string literals with period and the field name
Submitted by
Andrew Stevens
-
a year ago
(Last modified a year ago)
1
DSN parser
PCRE2 (PHP >=7.3)
Regex for DSN parsing
Submitted by
ZKelo
-
a year ago
(Last modified a year ago)
1
email
PCRE2 (PHP >=7.3)
list of email
Submitted by
anonymous
-
a year ago
1
Unity Version Major & Minor (e.g. 2023.3)
PCRE2 (PHP >=7.3)
Match Unity Version as "Major.Minor"."Patch"
Submitted by
anonymous
-
a year ago
1
[sample]
PCRE2 (PHP >=7.3)
sample regular expression
Submitted by
anonymous
-
a year ago
1
Authors with year reference
PCRE2 (PHP >=7.3)
Try to find the author of a sentence following the next format: (Author, year) (Author, year; Author, year)
Submitted by
Antonio GarcĂa Maestre
-
a year ago
1
Gabon Phones
PCRE2 (PHP >=7.3)
Regex for Gabon phones (without +)
Submitted by
anonymous
-
a year ago
1
Spain Phones
PCRE2 (PHP >=7.3)
Regex for Spain phones (without +)
Submitted by
anonymous
-
a year ago
1
France Phones
PCRE2 (PHP >=7.3)
Regex for France phones (without +)
Submitted by
anonymous
-
a year ago
1
Australian Phones
PCRE2 (PHP >=7.3)
Regex for Australian phones (without +)
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
1
Portuguese Phones
PCRE2 (PHP >=7.3)
Regex for Portuguese phones (without +)
Submitted by
anonymous
-
a year ago
1
Andorran Phones
PCRE2 (PHP >=7.3)
Regex for Andorran phones (without +)
Submitted by
anonymous
-
a year ago
1
Italian Phones
PCRE2 (PHP >=7.3)
Regex for Italian phones (without +)
Submitted by
anonymous
-
a year ago
1
German Phones
PCRE2 (PHP >=7.3)
Regex for German phones (without +)
Submitted by
anonymous
-
a year ago
1
UK phones
PCRE2 (PHP >=7.3)
Regex for UK phones (without +)
Submitted by
anonymous
-
a year ago
1
Irish Phones
PCRE2 (PHP >=7.3)
Regex for Irish phones (without +)
Submitted by
anonymous
-
a year ago
1
Swedish Phones
PCRE2 (PHP >=7.3)
Regex for Swedish phones (without +)
Submitted by
anonymous
-
a year ago
1
Indian Phones
PCRE2 (PHP >=7.3)
Regex for Indian phones (without +)
Submitted by
anonymous
-
a year ago
1
Indonesian Phones
PCRE2 (PHP >=7.3)
Regex for Indonesian phones (without +)
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
1
Japanese Phones
PCRE2 (PHP >=7.3)
Regex for Japanese phones (without +)
Submitted by
anonymous
-
a year ago
1
...
113
114
115
116
117
...
147
Community Library Entry
3
Regular Expression
Golang
`
^
(?P<scheme>
[^
:
\/
?#
]
+
)
:
(?:
\/\/
)?
(?:
(?:
(?P<login>
[^
:
]
+
)
(?:
:
(?P<password>
[^
@
]
+
)?
)?
@
)?
(?P<host>
[^
@
\/
?#:
]
*
)
(?:
:
(?P<port>
\d
+
)?
)?
)?
(?P<path>
[^
?#
]
*
)
(?:
\?
(?P<query>
[^
#
]
*
)
)?
(?:
#
(?P<fragment>
.
*
)
)?
`
gm
Open regex in editor
Description
Extract URL parts only named capturing groups
Submitted by
dixanms
-
3 years ago