Files
Applications/Docker2/Downloads/Voltaserve/conversion/helper/string.go
T
2026-03-16 18:26:47 +01:00

15 lines
218 B
Go

package helper
import (
"regexp"
"strings"
)
func RemoveNonNumeric(s string) string {
reg, err := regexp.Compile("[^0-9]+")
if err != nil {
return ""
}
return strings.TrimSpace(reg.ReplaceAllString(s, ""))
}