Contact: aviboots(AT)netvision.net.il
40,885 questions
53,293 answers
573 users
package main import ( "fmt" "regexp" ) func main() { s := "golang c# rust java c c++ python" whitespaceregx := regexp.MustCompile(`\s+`) s = whitespaceregx.ReplaceAllString(s, " ") fmt.Println(s) } /* run: golang c# rust java c c++ python */