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
Relevance
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 80 community submitted regex patterns...
1
Valid RGB color value
ECMAScript (JavaScript)
Pattern for matching actually valid RGB values. validate separator (mixing spaces and commas between values is not valid) validate if comma is used as separator if alpha channel is set validate units (mixing percentage with integers is not valid) extract r, g, b, a, separator and unit with named gr...
Submitted by
BorisTB
-
3 years ago
(Last modified 3 years ago)
1
RGBA color values and opacity matcher
ECMAScript (JavaScript)
Regex to match R-G-B and Opacity with/without "," and even RGBA text It will match rgba(x,x,x,x.x) rgba (x x X x.x) x,x,x,x.x x x x x.x...
Submitted by
Maulik Soni
-
9 years ago
1
Match Valid HTML5 Color Names
PCRE2 (PHP >=7.3)
RascalJournal.com
Submitted by
anonymous
-
3 months ago
1
CSS3 color expressions
PCRE (PHP <7.3)
Up to spec as of 2016-03-16. You can choose whether to enforce industry-standard casing for keywords via the "i" flag, which is enabled by default. Note that both "currentcolor" and "currentColor" are common; the relevant spec uses "currentColor", but several browsers prefer "currentcolor".
Submitted by
Paul Buonopane @ NamePros
-
9 years ago
1
Regex to Match Valid Hex Color Values in CSS
Python
no description available
Submitted by
Prayash Mohapatra
-
8 years ago
1
Match Hex Color Codes
PCRE2 (PHP >=7.3)
DartWhite.com
Submitted by
anonymous
-
3 months ago
1
Find CSS hexadecimal color values
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
1
Match Hexadecimal Color with Optional Alpha
PCRE2 (PHP >=7.3)
theunjob.com
Submitted by
anonymous
-
3 months ago
1
Check if string matches a valid CSS color (hex, rgb, rgba, hsl, hsla)
ECMAScript (JavaScript)
no description available
Submitted by
Ioannis Potouridis
-
6 years ago
1
Hexadecimal Color Code Validation
PCRE2 (PHP >=7.3)
murdochleaks.org
Submitted by
anonymous
-
3 months ago
1
nmcli WiFi list
PCRE2 (PHP >=7.3)
Extract different fields from the list output of nmcli: nmcli --terse --colors no --fields IN-USE,BSSID,SSID,MODE,CHAN,RATE,SIGNAL,BARS,SECURITY,FREQ,DEVICE device wifi list
Submitted by
Simon Bagley
-
a year ago
(Last modified a year ago)
1
RGBA [0;255]
PCRE (PHP <7.3)
Color RGBA in shape : 255, 255, 255, 255 ',' or ';' are accepted
Submitted by
theBlueBisu
-
9 years ago
0
Facebook Page/Profile. No profile.php. No /groups/
PCRE (PHP <7.3)
Example: http://www.facebook.com/profile.php?id=123456789 http://www.facebook.com/someusername https://www.facebook.com/0x20.be http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2F2leep%2F109473355777935&width=300&connections=4&stream=false&heade...
Submitted by
aramosf
-
9 years ago
0
Find color
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
search h1 tag html
PCRE (PHP <7.3)
(.*?) example: Your best title
Submitted by
otharwa
-
10 years ago
-1
Street, City, State|State Code, Zip
PCRE (PHP <7.3)
Matches the following format of US address: Street, City, State|State Code, Zip Example: 765757 North Nevada Avenue, Colorado Springs, CO, 80918
Submitted by
Chandan Kumar Sinha
-
9 years ago
-1
Matching un-wrapped HTML & CSS code blocks in Markdown
ECMAScript (JavaScript)
PATTERNS RegEx Flavour ECMAScript (JavaScript, ActionScript, TypeScript, etc.) ...
Submitted by
anonymous
-
2 years ago
0
Convert NGUI Color codes to Unity Rich Text Color codes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Minecraft Color Code Regex
Java 8
Easy to remove minecraft color codes from strings.
Submitted by
Saniee
-
3 years ago
0
Find white color text in html HSL
ECMAScript (JavaScript)
Find white color text in html (hsl)
Submitted by
anonymous
-
4 years ago
1
2
3
4
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
(?<property>
[
\w
-
]
+
[^
:
]
)
:
|
(?<HEX_COLOR>
#
[
0
-
9a
-
f
]
{3,8}
)
/
gmud
Open regex in editor
Description
capture property and value which have color attribute in it
Submitted by
Keshav
-
2 years ago