Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(var preferences = {)[\s\S]*(};)
/
mg

Description

Match everything between 2 strings - Including the strings and white space and new lines

Submitted by anonymous - 8 years ago