fix device id regex