Skip to content

Instantly share code, notes, and snippets.

@alksily
Last active May 19, 2016 18:30
Show Gist options
  • Select an option

  • Save alksily/85f22a84febe44cb5fd161f6b06e2d2a to your computer and use it in GitHub Desktop.

Select an option

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

alksily commented May 19, 2016

Copy link
Copy Markdown
Author

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