123Scan, stripping last character / digit

hi, trying to make rule in ADF using 123scan, aim to strip off the last character / digit the barcode length is unknown, anyone has the solutions? thanks