fix regex to exclude ranges