Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "regexp"
- "strings"
- )
- func main() {
- re := regexp.MustCompile(`([a-z0-9])([A-Z])`)
- s := re.ReplaceAllString("HealthChecksResultsFulanoOutroBeltrano", "${1}_${2}")
- fmt.Println(strings.ToLower(s))
- }
Add Comment
Please, Sign In to add comment