Extensions.StringUtil.MatchToRegularExpression
Jump to navigation
Jump to search
Contents
Classification
Name | MatchToRegularExpression |
Short Description | Uses of regular expressions |
Class | Term |
Extension | OTX StringUtil extension |
Group | StringUtil related terms |
Exceptions | OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = MatchToRegularExpression(StringTerm, StringTerm);
Description
The MatchToRegularExpression term returns TRUE if the used regular expression also returns TRUE on the string .
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | Result of the regular expression that is applied to the string |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
String | String | Term | - | [1] | The string is analysed |
RegExp | String | Term | - | [1] | The regular expression specified string will be carried out on the |
OTL Examples
Boolean Boolean1 = false;
Boolean1 = MatchToRegularExpression("emotive", "[a-z]*");
See also
ReplaceSubString
StringConcatenate
SubString
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode