Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^application\/(.+\+)?json$
/
mg

Description

Useful to check the HTTP content-type as application/json since sometimes people created their own custom content-type on top of JSON.

Submitted by Yordis Prieto (Alchemist Ubi) - 4 years ago