delimiter space or multiple spaces python code example
Example 1: replace multiple spaces with single space python
' '.join(mystring.split())
Example 2: split funtion in string on multiple spaces
String[] sArray = s.split("\\s{2,}");
' '.join(mystring.split())
String[] sArray = s.split("\\s{2,}");