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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 2,380 community submitted regex patterns...
2
URL parser
PCRE2 (PHP >=7.3)
The best way to parse URL via Regex. This can be used in javascript, PHP, etc.
Submitted by
Ivijan-Stefan Stipic
-
7 years ago
(Last modified 9 months ago)
1
...
117
118
119
CSS colour hex matcher
1
Regular Expression
PCRE (PHP <7.3)
/
#
(
[
[:xdigit:]
]
{3}
){1,2}
\b
/
img
Open regex in editor
Description
Matches instances of colour hex codes with either 3 or 6 digits.
Submitted by
Tom Higginson
-
9 years ago