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 200 community submitted regex patterns...
0
ISO8601-utc-time
Golang
no description available
Submitted by
johndunne
-
4 years ago
0
Regex for email searches
Golang
no description available
Submitted by
Manuel
-
4 years ago
0
artifactory-request
Golang
no description available
Submitted by
Scott Barnes
-
4 years ago
0
Date by Month Name
Golang
Best I could do for parsing dates spelled out as day, month name, year
Submitted by
anonymous
-
4 years ago
(Last modified a year ago)
0
Detecting CJK Chars in Golang!
Golang
Detecting CJK Chars in Golang!
Submitted by
anonymous
-
3 years ago
0
Log Data Parsing
Golang
parse log data
Submitted by
anonymous
-
3 years ago
0
Semantic Versioning
Golang
Semantic versioning regex
Submitted by
anton-yurchenko
-
3 years ago
0
Filter 4, 10 digits and email
Golang
Test
Submitted by
gert rohde
-
3 years ago
0
Valid email address 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. EDIT: This is newer than the version at https://regex101.com/l...
Submitted by
markus@maragu.dk
-
3 years ago
0
Add string after matching 1st occurence, every line
Golang
Regex adding a string (here vs_) after 1st matching occurence (of reflectance_\d_).
Submitted by
Nikos Alexandris
-
3 years ago
0
Changelog commit template
Golang
Changelog commit template
Submitted by
anonymous
-
3 years ago
0
Friendzymes: dna-annotate github action example
Golang
Example input-pattern for the Friendzymes GitHub Action dna-annotate.
Submitted by
Friendzymes Team
-
3 years ago
0
character followed by number
Golang
ehehe
Submitted by
arahsafari
-
3 years ago
0
Address
Golang
Address check
Submitted by
anonymous
-
3 years ago
0
use in query db( in () )
Golang
int&space to 'int',
Submitted by
anonymous
-
3 years ago
0
filter for jjwxc.net/晋江文学城
Golang
use for www.jjwxc.net/bookbase.php after search get novel infomations in the form
Submitted by
DEFAULT_USER_149
-
3 years ago
(Last modified 3 years ago)
0
Zarf docker domain matcher
Golang
Used by Zarf to swap the registry domain/port part an image url without needed the docker libraries. usage in go: func SwapHost(src string, targetHost string) string { var parser = regexp.MustCompile((?im)^([a-z0-9\-.]+\.[a-z0-9\-]+:?[0-9]*)?/?(.+)$) var substitution = targetHost + "/$2" return...
Submitted by
Jeff McCoy
-
3 years ago
0
parse dpserver url
Golang
parse dpserver url
Submitted by
qianshen
-
3 years ago
0
豆瓣图书信息匹配/Regex for douban books
Golang
提取书籍信息 get book information link like:https://book.douban.com/subject/35049755/
Submitted by
anonymous
-
3 years ago
0
晋江文学城作品界面详细信息/jjwxc.net
Golang
for http://my.jjwxc.net/novelreview.php?novelid= +novel id
Submitted by
anonymous
-
3 years ago
1
...
4
5
6
7
8
...
10
JWT pattern
1
Regular Expression
ECMAScript (JavaScript)
/
e
[
yw
]
[
A
-
Za
-
z0
-
9-_
]
+
\.
(?:
e
[
yw
]
[
A
-
Za
-
z0
-
9-_
]
+
)?
\.
[
A
-
Za
-
z0
-
9-_
]
{2,}
(?:
(?:
\.
[
A
-
Za
-
z0
-
9-_
]
{2,}
){2}
)?
/
g
Open regex in editor
Description
handles both JWS (3 segments) and JWE (5 segments)
remove the ending
(?:(?:...
to handle JWS only
segments 1+2 are expected tp start with
e[yw]
, an encoded start of JSON object
{"
or
{\n
remove/extend it to match used token structure
or make it even more restrictive
(ey[IJ]|ewo)
to match encoded
{"\w
or
{\n"
payload (2nd segment) may be empty
both header (1st segment) and payload are expected to start with
eyJ
, a base64 encoded start of JSON object
{"
accepts only proper Base64url encoding (RFC 4648) without Base64 padding
=
test it at
https://regex101.com/r/V99DS0
Submitted by
iki
-
3 months ago
(Last modified 2 months ago)