2023:Pattern Match (Value Extractor)
| WIP |
This article is a work-in-progress or created as a placeholder for testing purposes. This article is subject to change and/or expansion. It may be incomplete, inaccurate, or stop abruptly. This tag will be removed upon draft completion. |
Pattern Match is an Extractor Type found in Grooper. This extractor primarily uses regular expression (regex) for general data extraction.
About
Pattern Match is one of the most commonly used extractors for general data. As per its name, it extracts data from a document matching a regex pattern entered into the Value Pattern.
This extractor is useful when you want to extract text data matching a particular pattern across a document, such as dates or social security numbers. For example, the format MM/DD/YYYY can be matched with the regex pattern: \d{2}/\d{2}/\d{4}.
For more information on regex, click the following link:
How To
Pattern Match can be configured on both Data Type and Value Reader objects.
Configuring on a Value Reader
Upon creating your Value Reader, you will see three tabs, Value Reader, Tester, and Advanced. To create a Value Reader that uses Pattern Match, select the Value Reader tab. From there, on the Extractor property, you will select the icon on the far right, and from the drop-down menu, select Pattern Match. Upon selection, click the Tester tab, and in the Value Pattern box, enter the text, or regex pattern of the text you wish to extract.
Configuring on a Data Type
The Data Type is a little more involved when picking out Pattern Match. To select the extractor, create your Data Type, and select the ellipses icon to the far right of Local extractor