我想分开
"Use a regexp that matches any combination\nthat satisfies Python's\n\nisalphanumeric() or isspace() functions, but not two simultanionus\nnewline symbols"
变成一个
^{pr2}$使用findall()方法列出。在
我写过:
re.findall("[\w\s]*", text)
但现在我需要添加一些类似“except for \n \n”之类的内容,它可以使我的表达式更符合当前的要求。在
尝试这个。看演示。使用匹配而不是分割。
https://regex101.com/r/vD5iH9/11
^{pr2}$相关问题 更多 >
编程相关推荐