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 200 community submitted regex patterns...
3
Hostname validation
Golang
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
8 years ago
3
Extract URL parts only named capturing groups
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
-
3 years ago
2
domain for Google Data Studio (re2 dialect)
Golang
Matches subdomain, domain and top level in a field that contains a urls. https://www.whatever.you.want ---> whatever.you.want
Submitted by
anonymous
-
8 years ago
2
Mikrotik firewall logs
Golang
Matching for mikrotik ROS 7 Used in promtail and grafana
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
1
get video id from youtube link
Golang
no description available
Submitted by
RyuaNerin
-
9 years ago
(Last modified a year ago)
1
Siebel Id
Golang
no description available
Submitted by
anonymous
-
8 years ago
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
-
5 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
0
FB payload
Golang
no description available
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
-
5 years ago
1
Traefik stripprefixregex for web apps
Golang
Notes: Do not forget to escape the $ by an additional $. Escaping ? like \? does not work. But you could use [?] instead End result should be like this: "traefik.http.middlewares.r6tt-dev-web.stripprefixregex.regex=^/[a-z0-9/]+[a-z0-9]+([?]+.*)?$$"...
Submitted by
anonymous
-
4 years ago
1
Flexible box
Golang
no description available
Submitted by
anonymous
-
4 years ago
1
Lxx Wurzel
Golang
no description available
Submitted by
anonymous
-
4 years ago
1
windows file name from full path
Golang
Find all string matches with dir, one or more subdir, file name with optional extension. Common example with all capturing groups included: C://ProgramFiles/MyDir1/myDir2/file.ext
Submitted by
anonymous
-
4 years ago
1
Unix file with full path
Golang
Find all string matches with dir, one or more subdir, file name with optional extension. Common example with all capturing groups included: ../../dir/SubDir1/SubDir2/file.ext ...
Submitted by
anonymous
-
4 years ago
1
^(?:\d+[a-z]|[a-z])(?:\^\d+)(?:[\+|\-])(?:\d+[a-z])(?:[\+|\-])(?:\d+\=\d+)
Golang
for quadratic equations ||ax^2+bx+c=d||
Submitted by
anonymous
-
4 years ago
-1
rtrtr
Golang
gtgtg
Submitted by
anonymous
-
3 years ago
1
Valid email regexp in Go
Golang
A regexp to validate an email address according to https://html.spec.whatwg.org/#valid-e-mail-address . Note that the backslash in the name part of the regexp on that site is there to escape the forward slash, which is not needed in Go.
Submitted by
markus@maragu.dk
-
3 years ago
1
utf-8 char in imap mail
Golang
Check golang for presence of utf-8 char in rawEmail e.g. ?= =?UTF-8?Q? or =?3D?UTF-8?Q?
Submitted by
oscarunix
-
3 years ago
1
Traefik - MDW to add slash
Golang
Used in Traefik to add slash
Submitted by
juranir.santos@gmail.com
-
3 years ago
1
2
3
...
10
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(?<protokoll>
[
a
-
z
]
*
)
:
\/\/
?
(?<domain>
[
a
-
z.-
]
*
)?
(?<file>
[^
?#
]
*
)?
[
?
]
(?<parameter>
[^
#
]
*
)?
[
#
]
(?<anker>
.
*
)?
/
Open regex in editor
Description
split URL in protokoll, domain, file(with path), parameter and anker
Submitted by
Candyman1332
-
9 years ago