Answer the question
In order to leave comments, you need to log in
Regular expressions in python, how to remove none from output?
The program should split the signatures(in brackets) how to fix none or limit the output to 1 correct result
while True:
import re
income = input('Enter a phrase:')
result1 = re.split(r"(Regards...)|( Best regards,)|(Sincerely yours)|(Looking forward to your reply)", income )
print(result1)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question