in reply to How to deal with such strings?

both - and . should be treated relevant to what letters are next to them

In case you have dashes/dots in between, such as ...WWW--ZZZ..., would the "--" belong to the previous or next letter group? Or does this not happen?