Is there a simple way to remove multiple spaces in a string? September 11, 2022 by Tarik >>> import re >>> re.sub(' +', ' ', 'The quick brown fox') 'The quick brown fox'