TemplateRegexPosition class
Leave feedback
On this page
Provides a template field position which uses the regular expression.
Inheritance: TemplateRegexPosition →
TemplatePosition
The TemplateRegexPosition type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the TemplateRegexPosition class. |
| init | Initializes a new instance of the TemplateRegexPosition class. |
| Property | Description |
|---|---|
| expression | Gets the regular expression. |
| match_case | Gets the value that indicates whether a text case isn’t ignored. |
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.
- module
groupdocs.parser.templates - class
TemplatePosition - class
TemplateRegexPosition
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.