Use general dot replacement in regex expressions