【发布时间】:2021-05-25 16:04:22
【问题描述】:
知道为什么下面的正则表达式会削减句子的“fl”部分吗?
re.sub('[^a-zA-Z]', ' ', '\nFor a this river, the flow becomes complicated in the floodplain')
这是我得到的结果:
'For a this river the ow becomes complicated in the oodplain'
【问题讨论】:
标签: python python-3.x regex