Key Value Extraction is used to capture a “Value” in relation to a “Key”.

For example, if you are looking for a date value where a word “Date:” is available on the left side of the value:

Date: 01/02/2011

you would do following when you look at the page:

  • Find the word “Date:”
  • Look to the right of it
  • Capture the date

To support above logic, Key Value Extraction has three properties:

  • Key Pattern This is the word or Regular expression you are searching. such as “Date:” Please note that you can also use REgular expression to find your Key.
  • Location Location of the Value in relation to the Key Pattern
  • Value Pattern This is the word or regular expression you intend to capture such as “\d{2}/\d{2}/\d{4}”

Ephesoft utilizes standard regular expression patterns. To learn more on the regular expressions please visit Java Documentation [4]

Here are some simple examples which applies to both Key, Value, Validation and field patterns:

Irvine|Paris|Sydney Only one of the following three words: Irvine, Paris, Sydney.

\d{2,5}: Only two to five digit numbers

[A-Z]{2,30}: Only capital words that has two to 30 letters

\d{1,2}/\d{1,2}/\d{2,4}|\d{1,2}-\d{1,2}-\d{2,4}: Dates with “/” and “-” as a separator

For more Instruction on Regular Expressions please refer to the following link:  Regular Expressions

Was this article helpful to you?

wikiadmin

Comments are closed.