Error:Got error 'missing ) at offset 49' from regexp