Difference between revisions of "Extensions.StringUtil.MatchToRegularExpression"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | /// Local Declarations | |
+ | Boolean BooleanVariable = false; | ||
+ | /// Flow | ||
+ | BooleanVariable = StringUtil.MatchToRegularExpression(StringTerm, StringTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 22: | Line 25: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
Boolean Boolean1; | Boolean Boolean1; | ||
Revision as of 08:46, 25 October 2018
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
/// Local Declarations
Boolean BooleanVariable = false;
/// Flow
BooleanVariable = StringUtil.MatchToRegularExpression(StringTerm, StringTerm);
Description
The MatchToRegularExpression term shall return TRUE, if and only if the regular expression performed on the input string is true.
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] | Represents the String which shall be analysed. |
RegExp | String | Term | - | [1] | This String value represents the regular expression, which shall be performed on the other String given by the <string> argument. |
OTL Examples
/// Local Declarations
Boolean Boolean1;
/// Flow
Boolean1 = StringUtil.MatchToRegularExpression("emotive", "[a-z]*");
See also
ReplaceSubString
StringConcatenate
SubString
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode