Hi I'm still extracting text from OCR generated documents. I've managed to extract likely fields for registration numbers, stock numbers and VINs.
Unfortunately some strings have a 'S' instead of a 5 or a 'B' instead of a 8 The fields are of the format Registration XX99XXX Stock no XX99999 VIN XXXXXX99999 I've been experimenting with translate to convert the letters to the correct digit, but can't work out an easy way to only translate the digits. There may genuinely be 'B' and 'S' in the 'X' positions -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/