←Select platform

RegexPattern Property

Summary
Gets or sets an optional regular expression which defines the string to read.

Syntax
C#
C++/CLI
Java
Python
public string RegexPattern { get; set; } 
public String getRegexPattern(); 
public void setRegexPattern( 
   java.lang.String string 
); 
public: 
property String^ RegexPattern { 
   String^ get(); 
   void set (    String^ ); 
} 
RegexPattern # get and set (TextFormField) 

Property Value

The string containing the regular expression used to filter the text field string. A value of null (Nothing in VB) means no regular expression pattern matching will be performed on this field.

Remarks

Using a regular expression does not change the results of the processing. However, the value of the TextFormFieldResult.IsValidated property of the TextFormFieldResult object will determine whether the text read matches the specified regular expression.

For an example, if you set TextFormField.RegexPattern to a date expression such as "MM-DD-YYYY" and the value of the result text in OcrFormFieldResult.Text is "9 12 09", then the regular expression is not matched and the value of TextFormFieldResult.IsValidated will be false. If however, the value of the result text is "09-12-2009", then the regular expression is matched and the value of TextFormFieldResult.IsValidated will be true.

Requirements

Target Platforms

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

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