OTX Reference  
OpenTestSystem.Otx.Extensions.StringUtil.Terms.MatchToRegularExpression Class Reference

Use of regular expressions More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.StringUtil.Terms.MatchToRegularExpression:
Inheritance graph

Public Attributes

StringTerm _string
 Cardinality [1]
Represents the String which shall be analysed. More...
 
StringTerm regexp
 Cardinality [1]
Regular expression according to "PERL 5 regular expression Description Version 12", eg "^(_*[ a-zA-Z] [a-zA-Z0-9_ ]*)$". More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Use of regular expressions

The MatchToRegularExpression term is TRUE, if the regular expression which applied to the String is also TRUE.

Exceptions
Core.Exceptions.OutOfBoundsExceptionIt is thrown if the regular expression does not follow the supported syntax of the runtime system.
Syntax
BooleanTerm = StringUtil.MatchToRegularExpression(StringTerm string, StringTerm regExp);
Examples
// Local Declarations
Boolean Boolean1;
// Flow
Boolean1 = StringUtil.MatchToRegularExpression("emotive", "[a-z]*");

Member Data Documentation

◆ _string

StringTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.MatchToRegularExpression._string

Cardinality [1]
Represents the String which shall be analysed.

◆ regexp

StringTerm OpenTestSystem.Otx.Extensions.StringUtil.Terms.MatchToRegularExpression.regexp

Cardinality [1]
Regular expression according to "PERL 5 regular expression Description Version 12", eg "^(_*[ a-zA-Z] [a-zA-Z0-9_ ]*)$".