Regular Expressions 101

Community Patterns

Get text between certain characters from a huge HTML

1

Regular Expression
PCRE (PHP <7.3)

/
(?<=var config = )(.*?)(?=; if \(!config.request\) {)
/
mg

Description

Get text between certain characters from a huge HTML

Submitted by Kaushal Gajjar - 3 years ago