var ExtRegex = 
regexp.MustCompile("(M|m)(p|P)(3|4))|((F|f)(L|l)(A|a)(C|c))$")

with a 
./prog.go:10:18: 
regexp.MustCompile("((M|m)(p|P)(3|4))|((F|f)(L|l)(A|a)(C|c))$") (value of 
type *regexp.Regexp) is not constant


Actual error I get is "error parsing regexp: unexpected ): 
`(M|m)(p|P)(3|4))|((F|f)(L|l)(A|a)(C|c))$`"
It is missing a parentheses. This compiles fine:
 
    var ExtRegex = 
regexp.MustCompile("((M|m)(p|P)(3|4))|((F|f)(L|l)(A|a)(C|c))$")
Note that there are two parentheses after the double-quote.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a5acd2a9-d0a7-4bd0-8712-13f5f0fbbbb6n%40googlegroups.com.

Reply via email to