Unit
SysUtils
LastDelimiter(const Delimiters, S: string): Integer;
Returns the byte index of the last character that matches any character in a specified set of delimiters.
Delimiters:指定的分割符,可以是多個。
S:源字符串。
For example:
LastDelimiter('/*','123/567*/abc.txt') = 9;
remark:最後出現的分隔符號是“/”,位置是9。
LastDelimiter('./*)(','123/567/abc.txt') = 12;
remark:最後出現的分隔符號是“.”,位置是12。