Answers for "regex python to find all ocurrences"

-1

regex find all sentences python

text = "This is a good sentence. This is another good 1! thanks"

sentences = re.findall(r"[A-Z].*?(.s|?s|!s)", text)
Posted by: Guest on October-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language