Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
__\(\s?('|")(?<string>.*)\1\s?,\s?('|")(?<domain>.*)\3\s?\)
/
gmi

Description

Find tags matching: __('Some string to translate','some-domain')

Submitted by anonymous - 3 years ago