Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0
Syntax
Code Block
languagenone
 aString unlike "regExpPattern";
SemanticsReturns true if regExpPattern does not match aString, otherwise false. It is equivalent to not like.
Substitutables"regExpPattern"

Can be a literal like "abc" or any other regular expression. Regular Expressions provides an overview of regular expression syntax. "regExpPattern" must be enclosed in double quotes. An introduction into regular expressions can be found at Regular-Expressions.info

Examples

The example below assigns the boolean result of the relational expression with unlike operator to variable b1 . The expression evaluates to true if the string s1 is not " abc ".

Code Block
languagenone
set b1 = s1 unlike "abc";

The example below assigns the boolean result of the relational expression with unlike operator to variable b2 . The expression evaluates to true if the string s2 does not contain at least one letter or only lower case letters.

Code Block
languagenone
set b2 = s2 unlike "[a-z]+";
rp
Panel
titleRelated Pages:
rde
Panel
titleRelated Documentation: