Regular Expressions 101

Community Patterns

Failing regex which works in Perl

0

Regular Expression
PCRE (PHP <7.3)

/
^(?!#).*example.*
/
g

Description

Goal is match example lines which are not comments.

Submitted by anonymous - 10 years ago