Last active
May 19, 2016 18:30
-
-
Save alksily/85f22a84febe44cb5fd161f6b06e2d2a to your computer and use it in GitHub Desktop.
Regex for parse Accept header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?<type>(?:\w+|\*)\/(?:[\w\+]+|\*))(?:\;q=(?<q>\d(?:\.\d|))|)[\,]{0,} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.regex101.com/r/tI5rK9/1