sS ocr_checkForRegexp(BufferedImage img, S regexp) { L rects = autoSegment(bw, ocr_recognizeMultiLine_scored_g); ret ocr_checkForRegexp(img, rects, regexp); } sS ocr_checkForRegexp(BufferedImage img, L rects, S regexp) { LS texts = ocr_recognizeMultiLine(img, rects); if (nempty(texts)) print("Texts found: " + sfu(texts)); fOr (S text : texts) try S group = regexpFirstGroup(regexp, text); null; }