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)
javascript
youtube url match
extract video id, index, play list id from youtube url
Submitted by
anonymous
-
8 years ago
7
8 upvotes, 1 downvotes (89% like it) (You must be signed in to vote)
javascript
Extract currency with currency symbol if present
Extracts values of the form £nnn,nnn.nn or $nnn.nnn from text
Submitted by
Simon Gardner
-
8 years ago
7
10 upvotes, 3 downvotes (77% like it) (You must be signed in to vote)
javascript
Date and time format - ISO 8601
Matches ISO 8601 date formats
Submitted by
Ettienne
-
7 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
150 upvotes, 144 downvotes (51% like it) (You must be signed in to vote)
javascript
Password
no description available
Submitted by
anonymous
-
9 years ago
6
10 upvotes, 4 downvotes (71% like it) (You must be signed in to vote)
javascript
Split quotes and single words
Find " and ' quoted strings and "orphaned"/single words in a string
Submitted by
LoveIsGrief
-
9 years ago
6
7 upvotes, 1 downvotes (88% 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
6
7 upvotes, 1 downvotes (88% like it) (You must be signed in to vote)
javascript
TimezoneOffset
used to parse timezone in the format -08:00 or +05:30
Submitted by
Neha
-
8 years ago
6
11 upvotes, 5 downvotes (69% like it) (You must be signed in to vote)
javascript
search word with an accent
search any word with an accent
Submitted by
Thegner Pierre
-
8 years 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
12 upvotes, 6 downvotes (67% like it) (You must be signed in to vote)
javascript
Email with + symbol
email that accepts the plus (+) symbol
Submitted by
luckcheese
-
8 years ago
6
8 upvotes, 2 downvotes (80% like it) (You must be signed in to vote)
javascript
Spanish DNI/NIE check fist pass
no description available
Submitted by
Rafael Casanova Morera
-
8 years ago
6
11 upvotes, 5 downvotes (69% like it) (You must be signed in to vote)
javascript
HTML img
Grabs all HTML tags
Submitted by
Pirate11
-
8 years ago
6
26 upvotes, 20 downvotes (57% like it) (You must be signed in to vote)
javascript
Simple Number
Verifies Number is a negative/positive number. Number may be a decimal, but if it is, it requires at least one number before and after the decimal place. Decimal numbers may also be negative or positive. Only 1 decimal place is allowed.
Submitted by
David P Smith
-
8 years ago
6
6 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
email (tikhonov)
CheckEmail Login start or end simbols [._- ] .login@domain.com - fail -login@domain.com - fail _login@domain.com - fail login.@domain.com - fail...
Submitted by
Tikhonov Alexander <123546.90@mail.ru>
-
7 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
6
8 upvotes, 2 downvotes (80% like it) (You must be signed in to vote)
javascript
Email
no description available
Submitted by
anonymous
-
7 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Email regex validation
RegEx email /^((?!\.)[\w-_.]*)(@\w+)(\.\w+(\.\w+)?)$/gim; Just playing with Reg Ex. This to validate emails in following ways ...
Submitted by
https://www.linkedin.com/in/peralta-steve-atileon/
-
4 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
1
2
3
4
5
6
...
287
grab valid css rules and properties
Vote
23
35 upvotes, 12 downvotes (74% like it) (You must be signed in to vote)
Regular Expression
javascript
/
(
[
#.a
-
z
]
{1}
[
a
-
z_
]
{1}
[
\s\S
]
+
?
)
{
(
[
\s\S
]
*
?
)
}
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Pavel Dominguez
- 8 years ago