Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
<!--sec:\s*([\s\S]*?)\s*#-->
/
g

Description

This REGEX can be used for, e.g., PHP scripts to filter out comments that are only important for development.

Submitted by anonymous - 2 years ago