/** * @return string */ public function getRegexpMain() { $re = '{ (?> # Ignored chunks. (?> # Comment. -- [^\\r\\n]* ) | (?> # DB-specifics. ' . trim($this->adapter->getRegexpForIgnorePlaceholder()) . ' ) ) | (?> # Optional blocks \\{ # Use "+" here, not "*"! Else nested blocks are not processed well. ( (?> (?>[^{}]+) | (?R) )* ) #1 \\} ) | (?> # Placeholder (\\?) ( [' . $this->placeholders->getAllPlaceholdersAsString() . ']? ) #2 #3 ) }sx'; return $re; }