Fixing regex bug in parser.