Absence of leading or trailing space in regex invalidates search

前端 未结 0 1737
抹茶落季
抹茶落季 2021-01-17 00:49

I am trying to search different types of dates in my strings using regex.

import re

txt1 = "The date is 3-Dec "
txt2 = "The date is3-Dec "         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题