© Copyright 2023, Astera Software
Example
In this example, we will pass the required parameters to the function transformation object using a Variables object.
Where,
Pattern = {x,y}
String = A,2
In the output window, you can see that Astera has returned “False”, as the specified string does not match the specified pattern value.
Name
IsMatchRegEx
Syntax
IsMatchRegEx (String pattern, String str)
Purpose
To return true if the regular expression found a match in the string. Otherwise, returns false.
Description
Indicates whether the regular expression finds a match in a specified string value by returning a boolean value.
Return Type
Boolean
Parameters
pattern [System.String] – Regular expression pattern to match
str [System.String] – String to search for a match