Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 2,100 community submitted regex patterns...
1
Parse a HTML URL
Python
Break a URL into parts: protocol url path get parameters hash
Submitted by
Dale O'Brien
-
10 years ago
1
dd/mm/yyyy validation regexp
Python
no description available
Submitted by
uknnown
-
9 years ago
1
REGEX
Python
no description available
Submitted by
anonymous
-
10 years ago
1
IPv4 extraction
Python
no description available
Submitted by
Jacob
-
11 years ago
1
quoted string in VB.net format
Python
Get all strings in vb.net format (even nested quotes"
Submitted by
Alan Moore (http://stackoverflow.com/questions/2148587/finding-quoted-strings-with-escaped-quotes-in-c-sharp-using-a-regular-expression) modified by j
-
10 years ago
1
States
Python
States (US) 2 char format, matches: Ga or GA
Submitted by
miqui
-
10 years ago
0
Get any word before specific string
Python
no description available
Submitted by
anonymous
-
9 years ago
1
Strip ANSI escape characters
Python
no description available
Submitted by
anonymous
-
11 years ago
1
sad smiley
Python
looks for a sad smiley with a backslash
Submitted by
@barraponto
-
10 years ago
1
check phone number(Taiwan)
Python
If pattern match, then this number probably is a phone number in Taiwan.
Submitted by
Assalin
-
10 years ago
1
Find exeptions in log4j
Python
regex to consider exceptions in log4j
Submitted by
anonymous
-
10 years ago
1
postfix
Python
get ip identifier, queue name, email domain and status from postfix log
Submitted by
kglod
-
10 years ago
1
Timecode
Python
Regex to match standard timecode format. (Updated with fewer groups).
Submitted by
Travis
-
9 years ago
1
apache log parser
Python
no description available
Submitted by
Claudio Borges
-
9 years ago
1
json comment - first attempt
Python
no description available
Submitted by
Mark
-
9 years ago
1
Address Match
Python
no description available
Submitted by
Awk
-
9 years ago
0
Find email address in a string.
Python
no description available
Submitted by
anonymous
-
10 years ago
-1
woop
Python
no description available
Submitted by
anonymous
-
10 years ago
1
Captures entire log line that meet the criteria
Python
If you need to grab an entire log line based on criteria (error,warning,notice,info,debug), use this Regexp and change the parameters accordingly.
Submitted by
Neill Lima
-
10 years ago
1
this
Python
stinks
Submitted by
anonymous
-
10 years ago
1
...
3
4
5
6
7
...
105
Community Library Entry
4
Regular Expression
PCRE (PHP <7.3)
/
^
#
?
(
[
0
-
9a
-
f
]
{6}
|
[
0
-
9a
-
f
]
{3}
)
$
/
i
Open regex in editor
Description
Validates hexadecimal color codes based on the following rule set:
Optionally starting with a hash.
3 or 6 characters in length.
Using the [0-9a-f] character set.
Submitted by
Nathaniel Blackburn
-
9 years ago