Difference between revisions of "Extensions.StringUtil.MatchToRegularExpression"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE:'''MatchToRegularExpression '''}}[[Category:StringUtil]] | {{DISPLAYTITLE:'''MatchToRegularExpression '''}}[[Category:StringUtil]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | MatchToRegularExpression | Uses of regular expressions | [[Term]] | [[Extensions.StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[OutOfBoundsException]] | - }} | + | {{ClassificationActivity | MatchToRegularExpression | Uses of regular expressions | [[Term]] | [[Extensions.StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[Core.Actions.Throw.Exception.OutOfBoundsException|OutOfBoundsException]] | - }} |
== OTL Syntax == | == OTL Syntax == |
Revision as of 06:53, 16 February 2016
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