CALL "C$REGEXP" USING CREGEXP-GETMATCH matchHandle group idxStart idxEnd GIVING returnCode |
CREGEXP-GETMATCH | Constant | |
matchHandle | USAGE HANDLE | The handle returned by CREGEXP-MATCH |
group | PIC 9(n) | A number between 1 and the value returned by CREGEXP-NUMGROUPS |
idxStart | PIC 9(n) | Returns an index to the beginning of the string that matches the subexpression of the regular expression |
idxEnd | PIC 9(n) | Returns an index to the end of the string that matches the subexpression of the regular expression |
0 | Operation failed. Call the CREGEXP-LAST-ERROR function for more details. |
1 | Operation successful. |