關於Pyhton正則報錯: sre_constants.error: nothing to repeat at position
寫了錯誤的正則表達式 1、\b 后帶數量 將\d 誤寫成了\b , 尷尬! >>> pattern = re.compile(r'123\b*hello') ...
寫了錯誤的正則表達式 1、\b 后帶數量 將\d 誤寫成了\b , 尷尬! >>> pattern = re.compile(r'123\b*hello') ...