move "dot" in regex to avoid it being part of a range