removes the regular expression from device