Regular Expressions 101

Library entries

Parse Accept Header HTTP

Vote

0

Regular Expression
pcre

/
(?<content>(?<type>.+?)\/(?<sub>.+?)(?:\+(?<suffix>.+?))?)(?:;.*?(?:q=(?<weight>[.\d]+))?.*?)?(?:,|$)
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 years ago