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 12,000 community submitted regex patterns...
0
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
PCRE2 (PHP >=7.3)
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Submitted by
anonymous
-
9 months ago
1
...
598
599
600
MIME type verification
2
Regular Expression
PCRE (PHP <7.3)
/
^
[
\w
-
]
+
\/
[
\w
-
]
+
(?:
;
\s
*
[
\w
-
]
+
=
[
\w
-
]
+
)*
$
/
Open regex in editor
Description
See
http://tools.ietf.org/html/rfc2045#section-5.1
Submitted by
Erin Millard
-
11 years ago