转自:https://www.pinlue.com/article/2021/08/1000/0011676682400.html
re.findall
re.findall可以获取字符串中所有匹配的字符串。如:re.findall(r’\woo\w’, text);获取字符串中,包含’oo’的所有单词。
转自:https://www.pinlue.com/article/2021/08/1000/0011676682400.html
re.findall
re.findall可以获取字符串中所有匹配的字符串。如:re.findall(r’\woo\w’, text);获取字符串中,包含’oo’的所有单词。