Hello all,
I have run into this problem a couple times with scanning check through quick fields. The problem is the way that Reg ex matches new lines. Here is the example;
the pattern I have been using starts with ORDER OF and then I'm trying to capture only the first line. What I'm noticing is that \s match new line also so if my pattern is "ORDER OF\s(\w+\s\w*\s?\w*\s?\w*) it will jump to the next line. If I add /r/n it sometimes works and sometime not because the OCR output will sometimes have /r/n and sometimes only /r. I have to account for vendors having multiple word in their name but it can be as short as AT&T and as long as Some Other Company Than Has Long Name.
Does anyone have a pattern that works for this scenario? Thanks.