How to remove all extra spacing between words?
Text1.replace(/ {1,}/g," ")
The g at the end of the RegExp means: global, ie match and replace all occurrences.
Last updated: June 26, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai