I want to find multiple spaces in a string using python. How to check if multiple spaces exist in a string?
mystring = 'this is a test'
I have tried the below code but it does not work.
if bool(re.search(' +', ' ', mystring))==True:
# ....
The result must return True
.