O'Reilly logo

Intelligent Document Capture with Ephesoft - Second Edition by Jon Solove, Michael Muller, Ike Kavas, Pat Myers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Common regular expressions

The regular expressions used in Ephesoft are Java regular expressions. The reference documentation can be found on the Oracle website.

The following describes some more commonly used patterns:

  • Date: [0-9]{1,2}/[0-9]{1,2}/[0-9]{2,4}

    This pattern will look for 1 or 2 digits, [0-9]{1,2}, followed by a / and then 1 or 2 digits, [0-9]{1,2} followed by a / followed by 2 or 4 digits, [0-9]{2,4}. Examples of matching patterns are 1/31/12 and 03/17/1974.

  • Currency: [0-9]{1,3}?,?[0-9]{1,3}\.[0-9]{2}

    This pattern will look for 1 to 3 digits, [0-9]{1,3}, followed by a , and then, by 1 to 3 digits followed by a "." that is followed by 2 digits. The ? means a 0 or 1 instance of the pattern, so in this case, anything followed with the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required