I would like to extract this group of letters and numbers: "V7C8X18587" I have used this expression:(match "[A-Z0-9]{8,10}") I would like to stop the process at the first match it finds since if there are several pages this group of numbers is found on each page and I extract all matches This is to extract this serial number through an OCR engine