I need to find a regex in go that match when there is no lowercase and at least one uppercase.
For example:
"1 2 3 A" : Match
"1 2 3" : No match
"a A " : no match
"AHKHGJHB" : Match
This work but in PHP not in Go (the ?=
token isn't working in Go):
(?=.*[A-Z].*)(?=^[^a-z]*$)
In my code this line call the regex:
isUppcase, _ := reg.MatchString(`^[^a-z]*$`, string)
Actually my regex catch when there is no lowercase but I want it also to catch when there is at least one uppercase.