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
quoted strings regex
PCRE2 (PHP >=7.3)
matches quoted strings
Submitted by
anonymous
-
2 years ago
0
Redis command parser
ECMAScript (JavaScript)
Modified source from https://stackoverflow.com/a/64833638/1454045
Submitted by
Nathaniel Schweinberg
-
2 years ago
0
JabRef biblatex alphabetic adaption
Java 8
A regex used to emulate the biblatex alphabetic citation key style in JabRef: https://discourse.jabref.org/t/use-field-markers-in-regex-for-citation-key-generator/3842
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Regex para Versión de Software
Python
Aún está pendiente que detecte ciertas versiones, como cuando trae la fecha o el 32/64 bits, build X, entre otros ejemplos
Submitted by
anonymous
-
2 years ago
0
IssuePattern
PCRE2 (PHP >=7.3)
working pattern for Issue packages
Submitted by
anonymous
-
2 years ago
0
Age
PCRE2 (PHP >=7.3)
Match "I'm ##" or "I am ##"
Submitted by
Matt
-
2 years ago
0
EmailValidation
PCRE2 (PHP >=7.3)
This is an Email validation using RegExp.
Submitted by
anonymous
-
2 years ago
0
RegEx
PCRE2 (PHP >=7.3)
Examples
Submitted by
anonymous
-
2 years ago
0
jiggl
PCRE (PHP <7.3)
toggl track to jira
Submitted by
anonymous
-
2 years ago
0
CSS @import statement
ECMAScript (JavaScript)
Matches CSS @import statements with media and layer support
Submitted by
anonymous
-
2 years ago
0
PEP
PCRE2 (PHP >=7.3)
Mikhail Stepanovich ZUSKO (Михаил Степанович ЗУСЬКО) Function: Russian military leader – Lieutenant- General Chief of staff of the “West” grouping Former Commander of the 58th Combined Arms Army of the Southern Military District DOB: 24.5.1972...
Submitted by
anonymous
-
2 years ago
0
pep2
PCRE2 (PHP >=7.3)
Ramil Rakhmatulovich IBATULLIN (Рамиль Рахматуллович ИБАТУЛЛИН) Function: Russian military leader – Major-General Commander of the 90th Guards Tank Division DOB: 22.10.1976 POB: Bagishevo, Apastovsky District, Tatarstan, former USSR (now Russian Federation)...
Submitted by
anonymous
-
2 years ago
0
catch inner element
Java 8
working regex for any
Submitted by
anonymous
-
2 years ago
0
detect inner function with recursiion
Java 8
working for all not for java
Submitted by
anonymous
-
2 years ago
0
Pull Quote regex
PCRE2 (PHP >=7.3)
Get quote text and author
Submitted by
sunilP
-
2 years ago
0
APA Citation v1
Java 8
Parse APA v7 citations
Submitted by
mathias v
-
2 years ago
0
Java RegEx Group Test
Java 8
Test
Submitted by
anonymous
-
2 years ago
0
Java RegExMatch Example
Java 8
This is an example for stackoverflow
Submitted by
anonymous
-
2 years ago
0
Basic Git pull request title validator
PCRE2 (PHP >=7.3)
Validates that there an optional [WIP] followed by a bracketed ticket number, PIDSS-n*, a space, and a string beginning with an uppercase character.
Submitted by
David E Nedrow
-
2 years ago
0
Groups / pb
PCRE2 (PHP >=7.3)
Trying to get groups to work in PB CreateRegularExpression(0,"^FWD:\[(?[0-9]{4})\] (?.+\.exe): (?.*)$") x$ = "FWD:[1234] something else.exe: a bunch of text" If MatchRegularExpression(0,x$)...
Submitted by
anonymous
-
2 years ago
1
...
895
896
897
898
899
...
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
-
7 months ago
(Last modified 6 months ago)