TemplateRegexPosition class
TemplateRegexPosition class
Provides a template field position which uses the regular expression.
Inheritance: TemplateRegexPosition →
TemplatePosition
The TemplateRegexPosition type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the TemplateRegexPosition class. |
| init | Initializes a new instance of the TemplateRegexPosition class. |
Properties
| Property | Description |
|---|---|
| expression | Gets the regular expression. |
| match_case | Gets the value that indicates whether a text case isn’t ignored. |
Example
The following example shows the situation if the document contains “Invoice Number INV-12345” then template field can be defined in the following way:
In this case as a value the entire string is extracted. To extract only a part of the string the regular expression group “value” is used:
In this case as a value “INV-3337” string is extracted.
See Also
- module
groupdocs.parser.templates - class
TemplatePosition - class
TemplateRegexPosition