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 15,840 community submitted regex patterns...
1
Uppercase Consonants - 17 character
PCRE2 (PHP >=7.3)
17 character solution for quiz task 3
Submitted by
Eq
-
2 hours ago
1
MT940
PCRE2 (PHP >=7.3)
:61:240831C201843307NINT :61:240833D201843307NINT
Submitted by
anonymous
-
15 hours ago
1
Class name validator
ECMAScript (JavaScript)
Validate if class name pass this criteria: A valid name should start with a letter (a-z)[A-Z] , an underscore (_), or a hyphen (-) which is followed by any numbers, hyphens, underscores, letters. A name should be at least two characters long. Cannot start with a digit, two hyphens or a hyphen fo...
Submitted by
Agustín Bouillet
-
3 days ago
1
Bitbucket URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a Bitbucket repository or tree URL. Handles both HTTP(S) and direct Bitbucket links.
Submitted by
Xain
-
4 days ago
1
GitLab URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a GitLab repository or tree URL. Handles both HTTP(S) and direct GitLab links.
Submitted by
Xain
-
4 days ago
(Last modified 4 days ago)
1
GitHub URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a GitHub repository or tree URL. Handles both HTTP(S) and direct GitHub links.
Submitted by
Xain
-
4 days ago
1
Discord - Command Name
ECMAScript (JavaScript)
Verification of Application Command names for Discord's API. Useful for Discord applications. Source : discord.dev
Submitted by
volcanofr
-
5 days ago
1
Word Pattern
ECMAScript (JavaScript)
Word Patterns - multilanguage Separating words that handle many use cases I needed, more than simple /\bword\b/gi. Below are some targeted test cases and acceptable failed cases: ...
Submitted by
Bryan Ho
-
9 days ago
1
Select first two quoted fields in CSV file
PCRE2 (PHP >=7.3)
In a .csv file where every field is quoted (for whatever reason) select the first two columns
Submitted by
anonymous
-
9 days ago
1
Currency format check, whole or decimal, no symbol, no negative
PCRE2 (PHP >=7.3)
I use this for validation on an input. Currency input that must include comma separation. Decimal places, 2, optional. No minus sign or currency symbols allowed. Valid: 1,000 1,234.56 1,234,555 ...
Submitted by
Truper
-
10 days ago
1
Firewalls Juniper
PCRE2 (PHP >=7.3)
09/21/11 10:47 29 Allow Partner-SQL-eComm 46990 tcp Partner-Web-eComm mysql 19999
Submitted by
vicevil
-
12 days ago
1
Get Plate from text
PCRE2 (PHP >=7.3)
Gettin plate from text (eng-gre)
Submitted by
anonymous
-
12 days ago
1
ANACOD
PCRE2 (PHP >=7.3)
Anacode:\s(\S+)\sTest Code:
Submitted by
GEE
-
12 days ago
1
vozuskia (cs/sk)
Java 8
Addes a non-breaking space after any of the letters included in the [vozuskia] class.
Submitted by
Manuel Souto Pico
-
15 days ago
1
Mp4 Url RegEx
PCRE2 (PHP >=7.3)
Match a http, https and local path url that contains Mp4
Submitted by
anonymous
-
15 days ago
1
Latin letters (Basic, extended-a, extended-b) with numbers
PCRE2 (PHP >=7.3)
https://symbl.cc/en/unicode-table/#latin-extended-b
Submitted by
thenostrom
-
16 days ago
1
匹配文件连接的文件名
PCRE2 (PHP >=7.3)
用于获取文件或者图片链接的文件名包含后缀
Submitted by
anonymous
-
17 days ago
1
url_validation_url_doğrulama
ECMAScript (JavaScript)
^ - This signifies the start of the expression. https?:// - This matches either "http://" or "https://". (www.)? - This makes the "www." subdomain optional. [A-z0-9]+ - This matches one or more alphanumeric characters for the domain name. . - This matches a literal period character. [A-z0-9]+ - This...
Submitted by
Emre Yıldırım
-
18 days ago
1
email-validation_email_dogrulama
PCRE2 (PHP >=7.3)
^ - This indicates the beginning of the expression. - This part specifies that the first character cannot be a digit, hyphen, or underscore. So the first character must be a letter, period, or other special character. [A-z0-9.-]+ - This part requires the username to contain at least one character...
Submitted by
Emre Yıldırım
-
18 days ago
1
京都市の洛内に表記される通り名を削除する正規表現 A regular expression to remove street names that appear within the Rakunai area of Kyoto City, Japan
PCRE2 (PHP >=7.3)
日本・京都府京都市の住所に通り名が含まれる場合があります。通り名が含まれるとナビアプリに入力したときに検索結果が0件になる場合があります。この場合に通り名を削除するために、通り名を検出する正規表現を考えました。 例えば、「京都府京都市上京区室町通一条上る小島町123-4」であれば「今出川通室町西入ル」が通り名です。 Addresses in Kyoto City, Kyoto Prefecture, Japan, may sometimes include street names. When a street name is included, entering it into a nav...
Submitted by
ゆっくりしてってねー
-
19 days ago
(Last modified 19 days ago)
1
2
3
...
792
Community Library Entry
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
-
4 months ago
(Last modified 3 months ago)