import re
regex = re.compile(r"\h*\b\p{Lu}\p{L}*\b", flags=re.MULTILINE | re.UNICODE)
test_str = ("Ещё Одно слово\n"
"hello goodbye Delete Me\n"
"Another Sentence good program\n"
"hello world The End\n"
"an iPhone\n"
"Ещё Одно слово")
subst = ""
result = regex.sub(subst, test_str)
if result:
print(result)
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Python, please visit: https://docs.python.org/3/library/re.html