Regular Expressions 101

Community Patterns

Basis-Tricks with capture group-Create and exclude

0

Regular Expression
PCRE (PHP <7.3)

/
.*(idMatches):\n(?s)(.+?)(Close: )(?s)(.+?)$
/
gm

Description

Create capture group - between (), and it shall not be a command Exclude capture group - write the pattern or the exact text/syntax without being sorrounded with ()

Submitted by anonymous - 3 years ago