Regular Expressions 101

Community Patterns

107

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

Mime type parser

2

Regular Expression
.NET (C#)

@"
(?<type>\w*)\/(?<subtype>[\w\.-]*)(?:\+(?<subtype>[\w\.-]*))?(?:;(?:(?<key>.+)=(?<value>.*);)*(?<key>.+)=(?<value>.*))?
"
g

Description

Loading markdown...
Submitted by Vespion - 8 months ago
(Last modified 8 months ago)