Got error 'missing ) at offset 30' from regexp