preg: handle no capture groups
SyntaxError exception namespace fix