Regular Expressions 101

Community Patterns

__('

1

Regular Expression
PCRE (PHP <7.3)

/
^(_{2}\([\'\"]{1})([a-zA-Z1-9\s%\_\'\.\,(\"\))*\(\=\>\$\-\!]*[(\){1,3})*(\'\)*)(\){1,3})*(\"\))*]+)
/

Description

get all messages which start with __('

Submitted by RO - 8 years ago