How to search for occurrences of more than one space between words in a line
1. this is a line containing 2 spaces 2. this is a line containing 3 spaces 3
This regex selects all spaces, you can use this and replace it with a single space
\s+
example in python
result = re.sub('\s+',' ', data))