updates device to use regular expression