Regular Expressions 101

Community Patterns

Community Library Entry

-1

Regular Expression
Created·2019-04-20 02:29
Flavor·PCRE (Legacy)

/
(.*?)(?:[;|,](?:q=.*?[,|;])?)
/
g
Open regex in editor

Description

This regex just grabs all the possible languages from the Accept-Language HTTP header.

Submitted by anonymous