Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // sanitize inputs
- import "regexp"
- func main() {
- r := regexp.MustCompile(`[^a-zA-Z\s]`)
- s := r.ReplaceAllString("input with emoji or non alphanumeric characters", "")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement