Difference between revisions of "Extensions.StringUtil.MatchToRegularExpression"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
[[Category:StringUtil]]
+
{{DISPLAYTITLE:'''MatchToRegularExpression '''}}[[Category:StringUtil]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | MatchToRegularExpression | Uses of regular expressions | [[Term]] | [[StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[OutOfBoundsException]] | - }}
+
{{ClassificationActivity | MatchToRegularExpression | Uses of regular expressions | [[Term]] | [[Extensions.StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[OutOfBoundsException]] | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 11: Line 11:
 
The '''MatchToRegularExpression''' term returns TRUE if the used regular expression also returns TRUE on the string .
 
The '''MatchToRegularExpression''' term returns TRUE if the used regular expression also returns TRUE on the string .
  
{{TermReturnValue| [[Boolean]] | Result of the regular expression that is applied to the string}}
+
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | Result of the regular expression that is applied to the string}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| String | [[String]] | [[Term]] | - | [1] | The string is analysed}}
+
{{TableRowPropertie1| String | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | The string is analysed}}
{{TableRowPropertie2| RegExp | [[String]] | [[Term]] | - | [1] | The regular expression specified string will be carried out on the}}
+
{{TableRowPropertie2| RegExp | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | The regular expression specified string will be carried out on the}}
 
|}
 
|}
  
Line 28: Line 28:
  
 
== See also ==
 
== See also ==
[[ReplaceSubString]] <br/>
+
[[Extensions.StringUtil.ReplaceSubString|ReplaceSubString]] <br/>
[[StringConcatenate]] <br/>
+
[[Extensions.StringUtil.StringConcatenate|StringConcatenate]] <br/>
[[SubString]] <br/>
+
[[Extensions.StringUtil.SubString|SubString]] <br/>
[[LengthOfString]] <br/>
+
[[Extensions.StringUtil.LengthOfString|LengthOfString]] <br/>
[[IndexOf]] <br/>
+
[[Extensions.StringUtil.IndexOf|IndexOf]] <br/>
[[SplitString]] <br/>
+
[[Extensions.StringUtil.SplitString|SplitString]] <br/>
[[ToUpper]] <br/>
+
[[Extensions.StringUtil.ToUpper|ToUpper]] <br/>
[[ToLower]] <br/>
+
[[Extensions.StringUtil.ToLower|ToLower]] <br/>
[[Encode]] <br/>
+
[[Extensions.StringUtil.Encode|Encode]] <br/>
[[Decode]]
+
[[Extensions.StringUtil.Decode|Decode]]

Revision as of 03:37, 16 February 2016

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.

Icons Note.png 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