Find the last occurrence of char in a string

DelphiNewbie picture DelphiNewbie · Apr 30, 2011 · Viewed 29.6k times · Source

Does there exist any RTL Delphi function to determine the position of the last occurrence of a char in a string?

Answer

RRUZ picture RRUZ · Apr 30, 2011

try the LastDelimiter function which is part of the SysUtils unit.