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,280 community submitted regex patterns...
1
Domain validation regex suitable for user input
Golang
This regexp can be used to validate domain names in Golang. While it cannot enforce the 253 character limit (with optional trailing period not included) that can be easily done by a simple len(domain) <= 253 check as well. This can be used as-is in other languages, even with RE2 regex engine. If po...
Submitted by
Alexander Dupuy
-
4 years ago
1
Basic DOI
Python
no description available
Submitted by
anonymous
-
7 years ago
1
extractor_RD_RT_Cisco
Python
no description available
Submitted by
anonymous
-
6 years ago
1
Regex to group output of $(ip addr) interface
Python
For this task, I did not need inet6 (IPv6 stuff), so I left it out. The regex in its current state does not allow for that to be included without manually adding the entire second part
Submitted by
anonymous
-
6 years ago
1
Extract columns names from any select query
Golang
This regex can capture any column name from a select query. Be the original name, like are named on table, renamed with a reserved word AS or even without explicit AS. Go on, and test with your query ;)
Submitted by
Jefferson Gouveia
-
6 years ago
1
alineas-ocorrencias
Python
Regex que captura ocorrências "semelhantes" a : 'alinea a', 'alineas a', 'alinea "a"', 'ali. "a"',...
Submitted by
maffei2443
-
6 years ago
1
Docker Reference
Python
Put together from information in: https://github.com/docker/distribution/blob/master/reference/reference.go (see comment at the beginning of the file) and https://github.com/docker/distribution/blob/master/reference/normalize.go (see func splitDockerDomain)
Submitted by
Leonhard Wimmer
-
6 years ago
1
Content between 2 tag
Python
(?)([a-zA-Z\s\w]+)(?=) get content between tags
Submitted by
anonymous
-
5 years ago
1
matching-search-queries-at-end
Python
This regex will match search queries formatted in 3 specific patterns.
Submitted by
anonymous
-
5 years ago
1
URL matching with HTTP(s) and IPv4 with Port
Python
no description available
Submitted by
anonymous
-
5 years ago
1
Test e-mail format string
Python
Regexp based on https://en.wikipedia.org/wiki/Email_address criteria.
Submitted by
anonymous
-
5 years ago
1
Python Float Verification
Python
no description available
Submitted by
anonymous
-
4 years ago
1
Extract fields from repository url
Python
It is used to extract fields from the repository URL Works in Python and JS Group1 : protocol (Such as http or https) Group2 : domain (Such as github.com or gitlab.com) Group3: Name space (Such as your personal namespace or project namespace) Group4: Project name (Such as your project name)...
Submitted by
anonymous
-
5 years ago
1
date_regex
Python
YYYYMMDD YYYY-MM-DD YYYY.MM.DD YYYY/MM/DD YYYY-M-D YYYY.M.D...
Submitted by
anonymous
-
4 years ago
(Last modified 6 months ago)
1
NFL Fixtures for links
Python
no description available
Submitted by
anonymous
-
5 years ago
1
Python:Match paragraphs separated by URL
Python
no description available
Submitted by
anonymous
-
5 years ago
1
Another X / Extra X / X more
Python
Extract phrases meaning "add X more of the previous item"
Submitted by
anonymous
-
5 years ago
1
IPv4 private CIDR range RFC1918
Golang
Validates that you provide a CIDR in one of the following valid ranges. 0.0.0 – 127.255.255.255 127.0.0.0/8 0.0.0 – 10.255.255.255 10.0.0.0/8 16.0.0 – 172. 31.255.255 172.16.0.0/12 192.168.0.0 – 192.168.255.255 192.168.0.0/16...
Submitted by
David Stockton
-
4 years ago
1
Audio filename splitter
Python
This Python regex allows you to split an audio filename with the sintax Authors - Title (Text1) [Text2].extension into: Group 1: Authors Group 2: Title Group 3: Text1 Group 4: Text2 Group 5: .extension...
Submitted by
Eche L.A.
-
4 years ago
1
Duco2
Python
no description available
Submitted by
anonymous
-
4 years ago
1
...
97
98
99
100
101
...
114
URL
0
Regular Expression
Python
r"
\b
(
(?:
https
?
://
)?
(?:
(?:
www
\.
)?
(?:
(?<!
@
)
[
\d
a
-
z
\.
-
]
+
)
\.
(?:
[
a
-
z
]
{2,6}
)
)
(?:
:
[
0
-
9
]
{1,4}
|
[
1
-
5
]
[
0
-
9
]
{4}
|
6
[
0
-
4
]
[
0
-
9
]
{3}
|
65
[
0
-
4
]
[
0
-
9
]
{2}
|
655
[
0
-
2
]
[
0
-
9
]
|
6553
[
0
-
5
]
)?
(?:
/
[
\w
\.
-
]
*
)*
/
?
)
\b
(?!
@
)
"
gmi
Open regex in editor
Description
Recognizing URLs
Submitted by
anonymous
-
2 years ago