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
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Equation matching (without equal)
use this to get value of any side of an equation. You can combine this with https://regex101.com/r/fH5kJ1/1
Submitted by
Kerosene2000
-
8 years ago
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
import url image
import url image
Submitted by
bartimeys
-
7 years 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)
python
Capture Query Strings
A solution for capture query params.
Submitted by
Rafael Laurindo
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Email
Python
Submitted by
anonymous
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Thorough UK Postcode Validator with In/Out code capture groups
A more thorough UK postcode validator tested against all UK postcodes on a regular basis, but excluding the special GIRO postcode case out of personal preference. Additionally has capture groups for the In-code and Out-code sections. Requires case insensitive matching.
Submitted by
Chris G
-
7 years ago
3
8 upvotes, 5 downvotes (62% like it) (You must be signed in to vote)
python
date time
1/Jul/2013 03:27:12
Submitted by
himel
-
9 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
how to match both lines?
f_name may contain spaces, numbers, characters,... so I would go for a but then I couldn't use [...]? anymore to match the second line?
Submitted by
anonymous
-
9 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Find URLs in markdown where the lines have been wrapped
no description available
Submitted by
anonymous
-
9 years ago
3
7 upvotes, 4 downvotes (64% like it) (You must be signed in to vote)
python
Twitch URL Regex
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
-
8 years ago
3
33 upvotes, 30 downvotes (52% like it) (You must be signed in to vote)
python
phone
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
8 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
python
prices in nis
no description available
Submitted by
molaxx
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
iframe src parser
Get iframe src
Submitted by
Sumeet Fefar
-
7 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
1
2
3
4
5
...
204
Match any url in text or html (http, https)
Vote
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre2
/
(?:
http
[
s
]
?
:
\/\/
.
)?
(?:
www
\.
)?
[
-a
-
zA
-
Z0
-
9@%._
\+
~#=
]
{2,256}
\.
[
a
-
z
]
{2,6}
\b
(?:
[
-a
-
zA
-
Z0
-
9@:%_
\+
.~#?&
\/\/
=
]
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Jérémy Munsch
- a year ago