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
prince first try
ECMAScript (JavaScript)
im just trying this out
Submitted by
prince
-
2 years ago
(Last modified 2 years ago)
0
Extract any http https and any url form
PCRE (PHP <7.3)
This will help you to extract any URL inside your text
Submitted by
Abdullah Alweheid
-
2 years ago
0
Parcing2
PCRE (PHP <7.3)
aa
Submitted by
anonymous
-
2 years ago
0
Get path from any text
PCRE2 (PHP >=7.3)
Get path (windows style) from any type of text (error message, e-mail corps ...), quoted or not. THIS IS COMMENTED VERSION !_ to simple copy and use it, go https://regex101.com/r/zWGLMP Relative path are not supported...
Submitted by
nitrateag
-
2 years ago
(Last modified 2 years ago)
19
Get path from any text
Recommended
PCRE2 (PHP >=7.3)
Get path (windows style) from any type of text (error message, e-mail corps ...), quoted or not. THIS IS THE SINGLE LINE VERSION !_ If you want understand how it work or edit it, go https://regex101.com/r/7o2fyy Relative path are not supported...
Submitted by
nitrateag
-
2 years ago
(Last modified a year ago)
0
Youtube API V3 Video list convert duration
PCRE2 (PHP >=7.3)
Convert the YouTube API V3 videos list, duration of videos to separate numbers for calculations.
Submitted by
Bo
-
2 years ago
0
trim phone number
PCRE (PHP <7.3)
trim phone number
Submitted by
anonymous
-
2 years ago
0
Capture optional HTML tag attributes in any order
PCRE2 (PHP >=7.3)
We often see some regular expressions to manipulate HTML instead of using a DOM parser. But well, in some cases we haven't got the parser or efficiency is a question of concern. In most cases I think the best is to use both together. First a simple and bullet-proof regex to extract data from the HTM...
Submitted by
Patrick Janser
-
2 years ago
0
Business Address | WI | Trademark | USA
Java 8
s
Submitted by
anonymous
-
2 years ago
0
carbon
Java 8
test1
Submitted by
anonymous
-
2 years ago
3
YouTubeVideoUrl
ECMAScript (JavaScript)
YouTubeVideoUrl
Submitted by
EdwardKonovalov
-
2 years ago
(Last modified 2 years ago)
0
log timestamp
Golang
extract time stamp from log entry
Submitted by
anonymous
-
2 years ago
0
Match HTML comments with nested comments
PCRE (PHP <7.3)
Even if this is not valid HTML, it's more to understand the concept of recursion in patterns. It was an answer to a Stack overflow question: https://stackoverflow.com/questions/75282404/remove-comments-from-some-generated-html-which-can-be-invalid-with-nested-commen The idea is to use PCRE's recur...
Submitted by
Patrick Janser
-
2 years ago
0
vscode 代码snippet 替换 为 pycharm 格式
Python
vscode 代码snippet 替换 为 pycharm 格式
Submitted by
anonymous
-
2 years ago
0
Search Trailing Commas
PCRE (PHP <7.3)
Regex used for finding trailing commas. Use for troubleshooting PHP 7.2 Codes
Submitted by
anonymous
-
2 years ago
0
Math any kind of letter
PCRE2 (PHP >=7.3)
Just a quick example of the \p{L} pattern
Submitted by
anonymous
-
2 years ago
0
SRD TEST Internal
ECMAScript (JavaScript)
Test guts to gather Stat and amount
Submitted by
anonymous
-
2 years ago
2
RFC3339 - JavaScript
ECMAScript (JavaScript)
Regex to validate a string that is RFC3339 compliant in JavaScript. RFC3339: https://www.rfc-editor.org/rfc/rfc3339. Expands upon: https://regex101.com/r/qH0sU7 by adding named capture groups for coding best practices.
Submitted by
Elliot Huffman
-
2 years ago
(Last modified 2 years ago)
0
get Alls methods , prototype, functions, etc.
ECMAScript (JavaScript)
((((\b(#|\w)+\b\.)?(\bprototype\b\.)?(\b(#|\w)+\b)(\s\=\s)?)?(\b(#|\w)+\b\s)\([\s\w,=]\s\))|(\bclass\b\s+\b\w+\b\s(extends\s\b\w+\b))(?=\s\{[\s\S]+\}))(?=\s*\{[\s\S]+\})
Submitted by
al.gau34
-
2 years ago
0
Storyblok Assets
PCRE2 (PHP >=7.3)
Match paths for a.storyblok.com
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
...
82
83
84
85
86
...
902
Community Library Entry
0
Regular Expression
Java 8
"
(?<scheme>
https
?
|
s
?
ftp
|
wss
?
|
git
)
:
\/\/
(?<subDomain>
[
a
-
z0
-
9-
]
{1,63}
\.
(?:
[
a
-
z0
-
9-
]
{1,63}
\.
)*
)?
(?<domain>
[
a
-
z0
-
9-
]
{1,256}
)
[
.
]
(?<tld>
[
a
-
z0
-
9
]
+
)
(?:
:
(?<port>
[
0
-
9
]
{1,5}
)
)?
(?<path>
\/
.
*
/
?
)?
"
gm
Open regex in editor
Description
The link matcher regex currently matches the most common types of links.
*Removed other links
Submitted by
IkeVoodoo
-
2 years ago
(Last modified 2 years ago)