Error Messages/40862
Error Message Examples
Bad value (-2) passed to the <<subPattern>> parameter of FindInText. Must be non-negative.
Cause
The subPattern parameter to the FindInText function, while searching for regular expression, must either be the subpattern name or the subpattern number. You have passed in a negative value to the subPattern parameter which is not allowed.
Defining a subpattern:
You can define a subpattern by placing the subpattern inside parenthesis.
Naming a subpattern:
You can name a subpattern by following the opening parenthesis of the subpattern by a question mark and then the name between two angle brackets.
Example of passing subPattern to FindInText:
FindInText('a*(?<bcd>b+(c+)(d*))','zyabdaabbcccfd', re:1, subpattern:['bcd',0,1,2,3])
Returns: [8,6,8,10,13]
Remedies
Correct the passed negative subPattern parameter to the FindInText function to a valid value.
Comments
<comments />
Enable comment auto-refresher