我有以下正則表達式代碼:tmp = 'c:\\\\temp' m = re.search(tmp, tmp) if(m==None): print('Unable to find a ticker in ' + filename) else: print("REGEX RESULT - " + m.group(0))返回無。無論我對變量 tmp 使用多少反斜杠,我仍然得到 None 作為結果。如何執行正則表達式來搜索反斜杠文件路徑?
添加回答
舉報
0/150
提交
取消