Regular Expressions 101

Community Patterns

regex to check array field with true, false value

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^\'(a|A)ctive(.*)(true|false)\;$
/
gm

Description

'active' => true; 'active'=> true; 'active' =>true; 'active'=>true; 'active' => false; 'active'=> false; 'active' =>false; 'active'=>false;

Submitted by Saurabh - 3 years ago