Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
7
8 upvotes, 1 downvotes (89% like it) (You must be signed in to vote)
pcre2
Get path from any text
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
-
4 months ago
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
CloudFlare
Cloud Flare
Submitted by
anonymous
-
2 years ago
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Email
email format control
Submitted by
ahmetbarut
-
2 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
National Insurance Number regular expression
This regular expression is build from the description of NINO number of GOV.UK,
Submitted by
Iftakhar Husan
-
2 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Livestock - Visual tag and Back tag
Visual tag and Back tag cannot more than 15 characters or only can contain uppercase, lowercase, space and dash.
Submitted by
Adrian Yim
-
2 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
camelCase2snake_case
Convert camelCase to snake_case def camelCase2snake_case(txt): """ Convert camelCase to snake_case https://regex101.com/library/wUcSv4...
Submitted by
JV-conseil
-
2 months ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
example
example
Submitted by
anonymous
-
2 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Match any url in text or html (http, https)
Match any url in text or html (http, https)
Submitted by
Jérémy Munsch
-
a year ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
dotnet
C# Regex Extract/Match Nested HTML Elements/Tags
With this C# regex, you can easily match/Parse Nested HTML tags. Example input: someTitle ...
Submitted by
w4po
-
a year ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
dotnet
Match any layer bracket pair (.NET)
Match any layer bracket pair
Submitted by
Yakumo Yukari
-
a year ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Dutch zipcodes
no description available
Submitted by
anonymous
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Dutch streetnames + housenumber + extension
Validates a streetname + housenr + extension Somestreet 12 b
Submitted by
anonymous
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
web log entry
no description available
Submitted by
PepeRG
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Url
Port https://regex101.com/library/cX0pJ8 to PCRE2 (PHP >= 7.3)
Submitted by
semivori
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
object
Json Object
Submitted by
anonymous
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
US phone number
US phone number, try to catch as many as possible
Submitted by
anonymous
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
.htaccess wordpress redirect uploads to production domain
.htaccess wordpress redirect uploads to production domain
Submitted by
anonymous
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Discord ID:NAME#DISCRIM match
For example, using `Carl-bot to dump members of the @everyone role ordering highest of id`: `!dump @everyone %i:%u -o id` Example of return: 498984530968051713:lanjt#2129 ......
Submitted by
lanjt
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
spring logback parser
Spring boot logback 日志正则匹配。 样例日志 2019-12-27 13:52:38.201 INFO 1 --- [Thread-8] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2019-12-27 13:52:39.535 INFO 1 --- [Thread-8] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed ...
Submitted by
LiuDecai
-
2 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
mega.nz files and folders
Regex for matching https://mega.nz file and folder URLs. https://github.com/tonikelope/megabasterd/issues/215
Submitted by
anonymous
-
2 years ago
1
2
3
4
...
113
web log entry
Vote
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre2
/
(?P<host>
\d
{1,3}
.\d
{1,3}
.\d
{1,3}
.\d
{1,3}
)
(
\s
-
\s
)
(?P<user_name>
[
\w
-
]
*
)
(
\s
\[
)
(?P<time>
\w
*
\/
\w
*
\/
\d
{1,4}
:
\d
{1,2}
:
\d
{1,2}
:
\d
{1,2}
\s
-
\d
{1,4}
)
(
\]
\s
\"
)
(?P<request>
.
*
)
(
"
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
PepeRG
- 2 years ago