I have the following code snippet:
func GetUUIDValidator(text string) bool { r, _ := regexp.Compile("/[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}/") return r.Match([]byte(text)) }
But when I pass fbd3036f-0f1c-4e98-b71c-d4cd61213f90 as a value, I got false , but really it is UUID v4.
What am I doing wrong?
go
Roberto santelices
source share