Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Intelligent Document Capture with Ephesoft, Second Edition

You're reading from   Intelligent Document Capture with Ephesoft, Second Edition Automate the processing of scanned and digital documents by improving accuracy using web-based open and modern intelligent document capture software

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher Packt
ISBN-13 9781783558582
Length 164 pages
Edition 2nd Edition
Arrow right icon
Toc

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 ? is optional. Examples of this pattern are 20.00, 50000.00, and 600,000.00.

  • Name with Letters Only: [a-zA-Z]{2,25}

    This pattern will look for any text that contains only 2 to 25 upper and lower case alpha characters.

    Note

    The following characters...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime