Answers for "python replace dash with space"

3

js replace space with dash

// replaces space with '-'
str = str.replace(/ /g, "-");
// or
str = str.split(' ').join('-');
Posted by: Guest on May-11-2021
0

replace spaces with dashes

const text = "codetogo saved me tons of time";

text.replace(/ /g, "-");
Posted by: Guest on October-20-2021

Code answers related to "python replace dash with space"

Code answers related to "Javascript"

Browse Popular Code Answers by Language