Functions

trRinstr

Supported By

Syntax

[the] trRinstr of ( haystack , needle )

trRinstr ( haystack , needle )

Haystack yields any string. Needle yields a string describing a set of characters.

Description

The trRinstr function returns the index of the last appearance of any of the characters in needle in the string haystack, starting at 1. If none of the characters in needle can be found in haystack, zero is returned.

Needle describes a set of characters, not a string. A range of characters can be specified by putting a hyphen between two characters; to match a literal hyphen, put a hyphen at the beginning or end. For example, the following pattern matches all numbers and basic Latin letters, as well as hyphens: A-Za-z0-9-

See Also

rinstr, csRinstr, regRinstr, instr, csInstr, regInstr, trInstr, offset, csOffset, regOffset, trOffset