Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(.*?)=(.*?)(?:;(?: |)|$)
/
gm

Description

Parser for cookies; works in HTTP servers AND front end

Submitted by lopste / Vercte - 3 years ago