Scala: How to convert multiple spaces to a single space (regex)
By Alvin Alexander. Last updated: November 30 2017
Here’s a quick Scala example that shows how to convert multiple spaces in a string to a single space:
Here’s a quick Scala example that shows how to convert multiple spaces in a string to a single space: