Fix regex syntax so the dash character is not interpreted as specifying a range of characters.