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 2,640 community submitted regex patterns...
0
Name regex
PCRE2 (PHP >=7.3)
Custom name validation
Submitted by
anonymous
-
2 years ago
0
GSTN
PCRE2 (PHP >=7.3)
Goods & Service Tax Numebr
Submitted by
anonymous
-
2 years ago
1
Extract strings between 2 delimiters
PCRE2 (PHP >=7.3)
Extract strings between a delimiter (",") or between a tabulation and a cr Example : toto@gmail.com,yoda@testmail.fr,foo@dugenou.com This expression will return bold e-mails
Submitted by
anonymous
-
2 years ago
0
Pan Number
PCRE2 (PHP >=7.3)
Pan Number
Submitted by
anonymous
-
2 years ago
1
refactoring
PCRE2 (PHP >=7.3)
for refactoring Kotlin tests
Submitted by
nikita.bols
-
2 years ago
(Last modified 2 years ago)
0
cri logfmt
Golang
The CRI expr will match and parse log lines of this format: 2019-01-01T01:00:00.000000001Z stderr P some log message `
Submitted by
east4ming
-
2 years ago
0
Test Function Block
PCRE2 (PHP >=7.3)
Test
Submitted by
anonymous
-
2 years ago
0
Readable fail2ban logs in AWS Cloudwatch
PCRE2 (PHP >=7.3)
Captures date, time, jail, action and ip address so they can be better formatted.
Submitted by
dtwx
-
2 years ago
0
Match a CiviCRM Case Hash
PCRE2 (PHP >=7.3)
CiviCRM prepends a hash to email subjects. This regex will capture the case hash and formatting and possibly useful for removing this text.
Submitted by
dtwx
-
2 years ago
0
Public Phone
PCRE2 (PHP >=7.3)
Public phone regex
Submitted by
AlexVerkhov
-
2 years ago
0
first word regex
PCRE2 (PHP >=7.3)
this can be used to show first word
Submitted by
anonymous
-
2 years ago
0
regex_commercial_activities
PCRE2 (PHP >=7.3)
guifro
Submitted by
guifro
-
2 years ago
0
Remove enclosing quotes
PCRE2 (PHP >=7.3)
Removes a pair of quotes enclosing a string and leaves just the string
Submitted by
anonymous
-
2 years ago
0
Email simple validation (x@x.x)
PCRE2 (PHP >=7.3)
Simple email validator (x@x.x) Note: Use /g to test all example emails.
Submitted by
davidgaroro
-
2 years ago
(Last modified 2 years ago)
0
MLA journal article Works Cited bibliography entry
PCRE2 (PHP >=7.3)
MLA journal article Works Cited bibliography entry
Submitted by
Ken M. Penner
-
2 years ago
0
test
PCRE2 (PHP >=7.3)
test
Submitted by
test
-
2 years ago
0
find email addresses
Golang
find email addresses
Submitted by
anon
-
2 years ago
(Last modified 2 years ago)
0
ipv4
PCRE2 (PHP >=7.3)
Find ipv4 addresses
Submitted by
anon
-
2 years ago
0
UPN Compiladores
PCRE2 (PHP >=7.3)
UPN Compiladores
Submitted by
anonymous
-
2 years ago
1
PHP PDO debugDumpParams parse as sql.
PCRE2 (PHP >=7.3)
解析php pdo 的 debugDumpParams 输出的数据。
Submitted by
anonymous
-
2 years ago
1
...
72
73
74
75
76
...
132
extract query and path params - incomplete
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
[
a
-
z
]
[
a
-
z0
-
9+
\-
.
]
*
:
(
\/\/
[^
\/
?#
]
+
)?
)?
(
(?:
\/
[
a
-
z
]
{4}
\/
(
[
a
-
z
]
{2}
\-
[
a
-
z
]
{2}
)
\/
)
(
[
a
-
z0
-
9
\-
._~%!$&'()*+,;=:@
\/
]
*
)
)
(?:
\?
?
)
(
(
[
a
-
z0
-
9
\-
._~%!$'()*+,;:@
]
+
)
(?:
\=
)
(
[
a
-
z0
-
9
\-
._~%!$'()*+,;:@
\/
]
*
)
)*
(
&
*
)
/
gm
Open regex in editor
Description
Working on a regex to extract path and query params
Submitted by
anonymous
-
2 years ago