Ismatch(); Notinlatter() - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

Purpose
This function uses a regular expression to search for the pattern, which is passed
as an input parameter, in the array that is also passed as an input parameter. When
it finds the first match of the pattern in the array, it adds the value from the array
to the scripting dictionary object.
Syntax
getFirstMatch(patt, arr)
Input parameters
String patt
Array arr
Return values
Dictionary keys

isMatch()

Checks whether the search pattern is in the string.
Purpose
This function calls the "getFirstMatch()" on page 121 function, passing the pattern
and string (contained within an array) as input parameters to this function. It
invokes ubound function to check whether the returned value from the
getFirstMatch() function is greater than or equal to 0. If it is, there is match;
otherwise, there is no match.
Syntax
isMatch(patt,str)
Input parameters
String patt
String str
Return values
Boolean True|False

notInLatter()

Filters the first array to determine whether the content is in the second array.
Depending upon the value of the in_or_not input parameter, the function returns
the contents of first array including or excluding what matched with the second
array.
122
Prerequisite Scanner: User's Guide
Contains the pattern for which to search.
Contains the array in which to search for the search pattern.
Returns the keys for the scripting dictionary object.
Contains the pattern for which to search.
Contains the string in which to search for the search pattern.
Returns True if there is a match; otherwise, it returns False.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Prerequisite Scanner and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents