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
Contains the pattern for which to search.
Array
arr
Contains the array in which to search for the search pattern.
Return values
Dictionary
keys
Returns the keys for the scripting dictionary object.
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
Contains the pattern for which to search.
String
str
Contains the string in which to search for the search pattern.
Return values
Boolean
True|False
Returns
True
if there is a match; otherwise, it returns
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
Summary of Contents for Prerequisite Scanner
Page 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 2: ......
Page 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 8: ...vi Prerequisite Scanner User s Guide ...
Page 10: ...viii Prerequisite Scanner User s Guide ...
Page 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Page 46: ...36 Prerequisite Scanner User s Guide ...
Page 68: ...58 Prerequisite Scanner User s Guide ...
Page 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Page 84: ...74 Prerequisite Scanner User s Guide ...
Page 88: ...78 Prerequisite Scanner User s Guide ...
Page 92: ...82 Prerequisite Scanner User s Guide ...
Page 116: ...106 Prerequisite Scanner User s Guide ...
Page 122: ...112 Prerequisite Scanner User s Guide ...
Page 136: ...126 Prerequisite Scanner User s Guide ...
Page 138: ...128 Prerequisite Scanner User s Guide ...
Page 140: ...130 Prerequisite Scanner User s Guide ...
Page 158: ...148 Prerequisite Scanner User s Guide ...
Page 164: ...154 Prerequisite Scanner User s Guide ...
Page 166: ...156 Prerequisite Scanner User s Guide ...
Page 170: ...160 Prerequisite Scanner User s Guide ...
Page 171: ......
Page 172: ... Printed in USA ...