Your \. escape is inside a string, where it doesn't mean anything.
You either want \\. (so that the string contains \.) or to use `...`
quotes, which don't do escapes, so the \. will be inside the
string.
Chris
--
Chris "allusive" Dollin
var split_exp = regexp.MustCompile("(.+?)(\.[^.]*$|$)")
This should be a valid regular expression as far as I can tell - it
works fine in other languages.
I'm noticing some other weird functionality with this - for instance, the (.+?) seems to throw an error ("repeated closure (**, ++, etc.)") because it checks for repeated metacharacters by specifically disallowing combinations of .,+, and ? (see line 473 in regexp.go).
Does anyone have a good writeup anywhere on how to get around these limitations in Go?