A regular expression that can be used to match and delete unnecessary whitespace between words in a string.
/ +/g
Matches:
- Regex<SPACE>Pattern
Non-matches:
- RegexPattern<SPACE>
- <SPACE>RegexPattern
See Also:
- Regex To Match All Whitespace Except New Line
- Regular Expression To Match Whitespace
- Regex To Match Any Word In A String Excluding Spaces
- Regex To Remove Unnecessary Spaces In A String