Community

Regular Expression in indexing script

Hi everyone. I'm working with ABBYY Recognition Server 4.0 for a while now and I ran on a problem where ABBYY does not support my regular expression. I tested the regex and it works in all the tests I tried, but not in ABBYY. The regex is written in JScript and searches for a number between variations of two specific (cyrillic) words or brackets. Can anyone answer me what do I have to change in the regex for ABBYY to accept it? Thank you in advance.

 

((?<=[\s]?\(\s?)(\s*?\d{1,}\s*?)(?=\)\s*рат[иа\s\.]?))|((?<=\s*на\s*)(\s*?\d{1,}\s*?)(?=\s*рат(\.и)?))|((?<=\s*на\s*)(\s*?\d{1,}\s*?)(?=\s*месечн(\.и)?))

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Ekaterina

    Hello,

    To know how should be organized the regular expression please see the article: "Regular Expressions" ABBYY Recognition Server 4 Help

    http://www.capturedocs.com/thread/regular-expression-in-indexing-script/

    0
  • Avatar
    Digital

    I've read that and I've changed my code but ABBYY still does not work with my code and it has a lot of options that I couldn't find in the Help menu. To sum up, it does not allow expressions that work in JScript, and not everything is written in the Regular Expressions topic. 

    0
  • Avatar
    Ekaterina

    Hello,

    Please sent your workflow, images, the regular expression and description of the issue to your regional support

    0

Please sign in to leave a comment.