Regular Expressions 101

Community Patterns

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

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 - 7 years ago