Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 4,320 community submitted regex patterns...
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
how to match both lines?
Python
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
2014-07-22 09:38
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Find URLs in markdown where the lines have been wrapped
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-08-26 21:13
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
iframe src parser
Python
Get iframe src
Submitted by
Sumeet Fefar
-
8 years ago
2016-01-05 12:41
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Capture Query Strings
Python
A solution for capture query params.
Submitted by
Rafael Laurindo
-
8 years ago
2016-05-15 10:22
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Email
Python
Python
Submitted by
anonymous
-
7 years ago
2016-09-07 03:55
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Thorough UK Postcode Validator with In/Out code capture groups
Python
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
2016-09-30 15:51
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
National Insurance Number regular expression
PCRE2 (PHP >=7.3)
This regular expression is build from the description of NINO number of GOV.UK,
Submitted by
Iftakhar Husan
-
3 years ago
2021-03-20 22:05
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Livestock - Visual tag and Back tag
PCRE2 (PHP >=7.3)
Visual tag and Back tag cannot more than 15 characters or only can contain uppercase, lowercase, space and dash.
Submitted by
Adrian Yim
-
3 years ago
2021-03-26 17:11
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
camelCase2snake_case
PCRE2 (PHP >=7.3)
Convert camelCase to snake_case def camelCase2snake_case(txt): """ Convert camelCase to snake_case https://regex101.com/library/wUcSv4...
Submitted by
JV-conseil
-
8 months ago
2023-03-23 19:10
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Discord ID:NAME#DISCRIM match
PCRE2 (PHP >=7.3)
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
2021-07-06 00:24
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
example
PCRE2 (PHP >=7.3)
example
Submitted by
anonymous
-
2 years ago
2021-07-13 06:44
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Match any url in text or html (http, https)
PCRE2 (PHP >=7.3)
Match any url in text or html (http, https)
Submitted by
Jérémy Munsch
-
2 years ago
2022-02-02 15:04
7
20 upvotes, 13 downvotes (score 43.7%) (You must be signed in to vote)
CSS Import
Python
no description available
Submitted by
anonymous
-
10 years ago
2014-05-03 00:51
7
30 upvotes, 23 downvotes (score 43.3%) (You must be signed in to vote)
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
10 years ago
2014-05-22 23:34
3
33 upvotes, 30 downvotes (score 40.3%) (You must be signed in to vote)
phone
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
9 years ago
2015-05-07 17:14
4
9 upvotes, 5 downvotes (score 38.8%) (You must be signed in to vote)
Complete imgur link regex
Python
This regex grabs all kinds of imgur links and groups them in meaningful names aswell. This way you have full flow-control in your python-scripts.
Submitted by
Mio
-
9 years ago
2015-03-13 11:26
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
prices in nis
Python
no description available
Submitted by
molaxx
-
8 years ago
2015-06-15 15:16
3
8 upvotes, 5 downvotes (score 35.5%) (You must be signed in to vote)
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
10 years ago
2014-01-29 03:45
3
7 upvotes, 4 downvotes (score 35.4%) (You must be signed in to vote)
Twitch URL Regex
Python
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
-
9 years ago
2015-03-15 12:53
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
xbmc - videodevil - chaturbate - test
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-06-28 16:05
1
2
3
4
5
...
216
iframe src parser
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Regular Expression
Python
r"
(
<iframe
.
*
?
src=
\\
"
)
(
[^
]
*
?
)
(
\\
"
.
*
?
>
)
(
.
*
?
)
(
<
\/
iframe>
)
"
g
Open regex in editor
Description
Loading markdown...
Submitted by
Sumeet Fefar
-
8 years ago
2016-01-05 12:41