在循环里进行正则表达式匹配的时候,经常出现没有理由的匹配失败,例如
try
match = re.match(str)[1] # TypeError: Cannot read property '1' of null
catch error
match = re.match(str)[1] # 完全正常
求解
try
match = re.match(str)[1] # TypeError: Cannot read property '1' of null
catch error
match = re.match(str)[1] # 完全正常
求解
