←Select platform

RegexParameters Constructor(RegexParameters)

Summary

Initializes a new instance of RegexParameters. This is a copy constructor.

Syntax
C#
C++/CLI
Java
Python
public RegexParameters( 
   RegexParameters r 
); 
__init__(self,r) # Overloaded constructor 

Parameters

r

RegexParameters to copy from.

Remarks

Regex parameters cannot act on their own. When they are made, they need to be added to the RegexParameter list in the matching RegexInspectorElement.

Example

Adding a regex parameter to find one or more capital letters, a space, then one or more capital letters.

C#
using Leadtools; 
using Leadtools.Document.Unstructured; 
using Leadtools.Document.Analytics; 
 
using Leadtools.Document.Unstructured.Highlevel; 
using Leadtools.Ocr; 
using Leadtools.Document; 
 
public void DocumentUnstructuredRegexParametersExample() 
{ 
      var r1 = new RegexInspectorElement() 
      { 
          Id = "r1", 
          IncludeWholeWord = true, 
          IncludeWholeLine = false 
      }; 
 
      r1.RegexParameters.Add(new RegexParameters() 
      { 
          Pattern = @"[A-Z]{1,}\s[A-Z]{1,}", 
          PatternIsOEM = false, 
          IgnoreSpaces = false, 
          IgnoreCase = false, 
          ApproximateRegexMode = ApproximateRegexMode.Disabled, 
          UseLettersToNumbersMapping = false, 
          AllowSubWordsMatching = true, 
          MinimumLength = 1, 
          MaximumCost = 0 
      }); 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Unstructured Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.