Answers for "python find all regex in string"

-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

Code answers related to "python find all regex in string"

Python Answers by Framework

Browse Popular Code Answers by Language