Regular Expressions 101

Community Patterns

include case

1

Regular Expression
PCRE (PHP <7.3)

/
(?<=<FilesMatch "test">)((.|\n)*?)(?=<\/FilesMatch>)
/

Description

How to include the matched cases in the result?

Submitted by anonymous - 10 years ago