sS ocr_checkForRegexp(BufferedImage img, S regexp) { LS texts = ocr_recognizeMultiLine(img); fOr (S text : texts) try S group = regexpFirstGroup(regexp, text); null; }