Skip to content

Instantly share code, notes, and snippets.

@alksily
Last active May 19, 2016 18:30
Show Gist options
  • Save alksily/85f22a84febe44cb5fd161f6b06e2d2a to your computer and use it in GitHub Desktop.
Save alksily/85f22a84febe44cb5fd161f6b06e2d2a to your computer and use it in GitHub Desktop.
Regex for parse Accept header
(?<type>(?:\w+|\*)\/(?:[\w\+]+|\*))(?:\;q=(?<q>\d(?:\.\d|))|)[\,]{0,}
@alksily
Copy link
Author

alksily commented May 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment