Regular Expressions 101

Library entries

Translatable string matcher for Laravel

Vote

0

Regular Expression
pcre

/
[^\w](?<!->)(trans|trans_choice|Lang::get|Lang::choice|Lang::trans|Lang::transChoice|@lang|@choice|__)\s*\(\s*((?<![\\])['"])((?:.(?!(?<![\\])\2))*.?)\2\s*[,\)]
/
g

Description

Loading markdown...
Submitted by anonymous - 2 years ago