Search code examples
stringdelphidelphi-2007

Find the last occurrence of char in a string


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


Solution

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