Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^([\w\W]+?)((?:\s\w+\.){0,}\[{0,}(`){0,}Дата ввода\3{0,}\]{0,})([\w\W]+)GROUP BY(.+)$
/
gs

Description

Insert GROUP BY statement for parameter (if there is already another "GROUP BY")

Submitted by anonymous - 6 years ago