我有问题。我试图只匹配第二个文件。
ERIC_KM_NOW_SYSTEMIC_17001900_data.html
ERIC_KM_NOW_17001900_data.html
import re
viewTag = "KM_NOW"
regex = re.escape(viewTag) + r'(\d{8})' + re.escape('_data')
test = re.search(regex, "ERIC_KM_NOW_17001900_data.html")
print(test)
这不正确吗?我输入“无”