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
Get every first letter of each word
PCRE2 (PHP >=7.3)
Get every first letter of each word
Submitted by
anonymous
-
3 years ago
0
1
PCRE2 (PHP >=7.3)
1
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
3
PCRE2 (PHP >=7.3)
3
Submitted by
anonymous
-
3 years ago
0
Length > 4 chars
Java 8
Accounts for any character 4 times and not 'null'
Submitted by
anonymous
-
3 years ago
0
Parse OFX date / date-time
PCRE2 (PHP >=7.3)
Parses an Open Financial Exchange date or date-time string as specified in "3.2.8.1 Dates, Times, and Time Zones" of the OFX Banking Specification, Version 2.3 October 2020.
Submitted by
Bryce Marshall
-
3 years ago
(Last modified 3 years ago)
0
ИНН
PCRE2 (PHP >=7.3)
Проверка правильности кадастрового номера
Submitted by
Virenbar
-
3 years ago
0
СНИЛС
PCRE2 (PHP >=7.3)
Проверка формата СНИЛС
Submitted by
Virenbar
-
3 years ago
0
lua_pattern
Python
lua file name
Submitted by
anonymous
-
3 years ago
0
СНИЛС укороченный
PCRE2 (PHP >=7.3)
Более компактный шаблон для проверки СНИЛС
Submitted by
anonymous
-
3 years ago
-1
slug numeric
PCRE2 (PHP >=7.3)
pattern to validate a slug with numbers
Submitted by
mestri.rodrigo
-
3 years ago
0
6 Digit Numeric Length
ECMAScript (JavaScript)
This Test will check is the given string is Exactly of 6 digits & all chars are Numbers. use case OTP Validations.
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Add gcache.size to Galera Cluster node config
Python
Regexp to add gcache.size to Galera cluster config, using Ansible's replace module
Submitted by
Aurelio Llorente
-
3 years ago
0
text between two parameters
PCRE2 (PHP >=7.3)
the gray ones are the wanted parameters
Submitted by
anonymous
-
3 years ago
0
UPI ID regex
ECMAScript (JavaScript)
regex to detect or extract UPI ID
Submitted by
anonymous
-
3 years ago
0
Tizen Package ID Requirements
ECMAScript (JavaScript)
These are the requirements for a Tizen Pacakge ID of type applicationIdType This type expects pattern '[0-9a-zA-Z]{10}.{1,52}'
Submitted by
sherwino
-
3 years ago
0
match street address
PCRE (PHP <7.3)
match street address with no more than 6 numbers and no special characters
Submitted by
anonymous
-
3 years ago
0
Any mobile number extraction
Python
extracting mobile number along with country code
Submitted by
anonymous
-
3 years ago
0
Email id extraction
Python
extracting email id from given string
Submitted by
anonymous
-
3 years ago
0
域名规则
ECMAScript (JavaScript)
域名规则
Submitted by
anonymous
-
3 years ago
0
中英文、数字、全角符号的验证正则
PCRE2 (PHP >=7.3)
匹配中、英文、数字、全角符号,破折号和下滑线,不匹配除了这些以外的其他字符
Submitted by
nihuge
-
3 years ago
1
...
818
819
820
821
822
...
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)