package main
import (
"fmt"
"regexp"
)
func removeNonAlphanumeric(str string) string {
re := regexp.MustCompile("[^a-zA-Z0-9]+")
return re.ReplaceAllString(str, "")
}
func main() {
s := "Go, #@ ! ^&Programming (*)."
s = removeNonAlphanumeric(s)
fmt.Println(s)
}
/*
run:
GoProgramming
*/