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
81
178 upvotes, 97 downvotes (65% like it) (You must be signed in to vote)
python
Distinguish torrent files (series vs movies)
A neat regex for finding out whether a given torrent name is a series or a movie. Returns the full name of the series with the separator needed to make it pretty (ie, replace it with space or what you want). Also returns the season number or the year for the movie/series, depending on what was prev...
Submitted by
Firas Dib
-
9 years ago
10
12 upvotes, 2 downvotes (86% like it) (You must be signed in to vote)
python
entity
no description available
Submitted by
anonymous
-
8 years ago
9
20 upvotes, 11 downvotes (65% like it) (You must be signed in to vote)
python
domain - host
no description available
Submitted by
anonymous
-
8 years ago
8
10 upvotes, 2 downvotes (83% like it) (You must be signed in to vote)
python
Find Reddit Threads
Simply searches for the thread-id in any kind of valid reddit-URL.
Submitted by
Mio
-
8 years ago
8
11 upvotes, 3 downvotes (79% like it) (You must be signed in to vote)
python
English date in "dd mmmm yyyy" format
Parse an English date following the "dd mmmm yyyy" format.
Submitted by
Tantale
-
8 years ago
8
13 upvotes, 5 downvotes (72% like it) (You must be signed in to vote)
python
repeat group match
no description available
Submitted by
anonymous
-
8 years ago
7
20 upvotes, 13 downvotes (61% like it) (You must be signed in to vote)
python
CSS Import
no description available
Submitted by
anonymous
-
9 years ago
7
30 upvotes, 23 downvotes (57% like it) (You must be signed in to vote)
python
Extract Protocol, URL, URL Path, get parameters and hash from URI
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
9 years ago
7
7 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
SO: fail2ban regular to find 403 request in nginx
http://stackoverflow.com/q/25778420/2072035
Submitted by
anonymous
-
9 years ago
7
8 upvotes, 1 downvotes (89% like it) (You must be signed in to vote)
python
extract subdomain(if available) or domain from URL
This regex should extract the subdomain, if any, or the domain, if no subdomain is used, from an arbitrary URL
Submitted by
trevi@twanda.com
-
7 years ago
6
6 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Conventional Commits validation
This regex prevents the writing of non-standard conventional commits. I'm available on my github
Submitted by
Krisque
-
a year ago
6
8 upvotes, 2 downvotes (80% like it) (You must be signed in to vote)
python
Find consecutive duplicate words
no description available
Submitted by
anonymous
-
8 years ago
6
6 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Bible reference extractor
For scraping http://skepticsannotatedbible.com/
Submitted by
antaytheist-owner
-
7 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Match Only Text
no description available
Submitted by
anonymous
-
7 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
IOS3166 Country Code Identification REGEX
IOS3166 Country Code Identification REGEX
Submitted by
theitgeek@recu.org.uk
-
8 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Form Tag
Form Tag
Submitted by
Jay Patel
-
7 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
psswd
no description available
Submitted by
anonymous
-
7 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Find and extract email domain
Find and extract email domain. Ex: test@example.pt -> extract 'example.pt'
Submitted by
Fnxk
-
7 years ago
4
9 upvotes, 5 downvotes (64% like it) (You must be signed in to vote)
python
Complete imgur link regex
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
-
8 years ago
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
1
2
3
4
...
107
Get h1-6 tag
Vote
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
Regular Expression
dotnet
@"
<
(
h
[
1
-
6
]
){1}
(?:
.
*
?
)?
>
(
.
*
?
)
</h
[
1
-
6
]
>
"
g
Open regex in editor
Description
Loading markdown...
Submitted by
OlegBel
- 4 months ago