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 18,040 community submitted regex patterns...
0
BDO client ID
PCRE2 (PHP >=7.3)
Validates client IDs
Submitted by
anonymous
-
a year ago
0
Splitting Inconsistent Addresses
PCRE2 (PHP >=7.3)
This pattern matches inconsistent addresses that have various street names and coordinates. This captures the Address 1 & 2, Type of Street, Coordinates (NE, NW, SE,SW) City, State, and Full zip
Submitted by
Nadira S Fant
-
a year ago
0
Salesforce - Flow Naming Conventions
PCRE2 (PHP >=7.3)
Ensure that Salesforce Flow name meets the following standards: - -
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
PCRE2 (PHP >=7.3)
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Submitted by
anonymous
-
a year ago
0
Twitch data capturing
ECMAScript (JavaScript)
Matches the data sent by the twitch IRC and captures into various groups
Submitted by
Bucky
-
a year ago
(Last modified a year ago)
0
text has numbers
ECMAScript (JavaScript)
text has numbers
Submitted by
vijay
-
a year ago
0
email matcher
PCRE2 (PHP >=7.3)
match some emails and extract their local part and domain
Submitted by
dang duomg 191
-
7 months ago
(Last modified 7 months ago)
1
...
900
901
902
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
-
6 months ago
(Last modified 5 months ago)