Functions

regRinstr

Supported By

Syntax

[the] regRinstr of ( haystack , needle )

regRinstr ( haystack , needle )

Haystack yields any string. Needle yields a string describing a regular expression.

Description

The regRinstr function returns the index of the last appearance of the regular expression needle in the string haystack, starting at 1. If needle cannot be found in haystack, zero is returned.

This function is regular expression-based. For a literal version of this function, see rinstr or csRinstr.

See Also

trRinstr, regInstr, trInstr, regOffset, trOffset