Test, validate and match regular expressions
This regular expression matches HTTP Content-Type or Accept header values that represent JSON data. It successfully matches standard application/ as well as vendor-specific or structured JSON media types like application/vnd.api+ or application/hal+. It is typically used for request header validation or content negotiation in web APIs.