Answers for "how to remove white space from string"

CSS
1

remove white spaces

"hello world".replace(/\s/g, "");
Posted by: Guest on October-17-2021
0

Deleting all white spaces in a string

.replaceAll(/\s/g,'')
Posted by: Guest on November-21-2021
0

remove whitespaces

//Extenion function
fun String.removeWhitespaces() = replace(" ", "")

// Uses
var str = "This is an example text".removeWhitespaces()

println(str)
Posted by: Guest on July-28-2021
0

Remove whitespace from str

name = name.strip()
Posted by: Guest on April-15-2022

Code answers related to "how to remove white space from string"

Browse Popular Code Answers by Language