As an alternative you can use a bracket argument [[\.\.]]
intead of a quoted argument "\\.\\."
.
This makes writing RegExes simplier.
This is mentioned in the last sentence of the Regex Specification. Perhaps the docs should mention the right escaping at the top of the chapter.