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 HTML Tag Pattern
PCRE2 (PHP >=7.3)
Valid HTML Tag Pattern Which HTML tags are considered invalid: Tags ending with a different tag than what it started. Example: Hello Tags with open attributes (or closed with a different type of quote). Examples: Hello or Hello Which HTML tags are considered valid: Tags ending with the same tag...
Submitted by
Ninja
-
a year ago
(Last modified a year ago)
1
Check if string matches a valid CSS color (hex, rgb, rgba, hsl, hsla)
ECMAScript (JavaScript)
no description available
Submitted by
Ioannis Potouridis
-
7 years ago
1
color-price-count
PCRE (PHP <7.3)
no description available
Submitted by
By me
-
8 years ago
1
Hexadecimal Color Code Validation
PCRE2 (PHP >=7.3)
murdochleaks.org
Submitted by
anonymous
-
a year ago
1
Match Hexadecimal Color with Optional Alpha
PCRE2 (PHP >=7.3)
theunjob.com
Submitted by
anonymous
-
a year ago
1
Match Hex Color Codes
PCRE2 (PHP >=7.3)
DartWhite.com
Submitted by
anonymous
-
a year ago
1
Regex to Match Valid Hex Color Values in CSS
Python
no description available
Submitted by
Prayash Mohapatra
-
9 years 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
RGBA [0;255]
PCRE (PHP <7.3)
Color RGBA in shape : 255, 255, 255, 255 ',' or ';' are accepted
Submitted by
theBlueBisu
-
10 years ago
1
Match Valid HTML5 Color Names
PCRE2 (PHP >=7.3)
RascalJournal.com
Submitted by
anonymous
-
a year 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
-
10 years ago
1
RGB colors
PCRE (PHP <7.3)
Matches all the RGB colors in the format #RRGGBB and #RGB
Submitted by
Gabriel Hautclocq
-
10 years ago
1
Hex Color Validator
Python
Verifies whether each input line contains a valid three- or six-digit hexadecimal number, commonly used as color codes in CSS and other technologies. Each number must begin with the "#" sign. I've seen other regexes for this which use individual expressions for a three-digit number and a six-digit...
Submitted by
Mr. Lance E Sloan
-
2 months 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
-
10 years ago
0
search h1 tag html
PCRE (PHP <7.3)
(.*?) example: Your best title
Submitted by
otharwa
-
11 years ago
0
Find color
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 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
-
10 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
Find element with specific attribute (supports multiline element)
ECMAScript (JavaScript)
This will help you find all the v-btn component usage with prop color set to primary.
Submitted by
anonymous
-
3 years ago
0
Hexadecimal Color
PCRE (PHP <7.3)
My First Regex
Submitted by
anonymous
-
8 years ago
1
2
3
4