' and - just have to be before alpha, not between

X0123-Y432 is a valid identifier.