Activity Forums Salesforce® Discussions How to find the last index within a String from a start position in Apex?

  • How to find the last index within a String from a start position in Apex?

    Posted by Anuj on August 27, 2020 at 2:11 pm

    How to find the last index within a String from a start position in Apex?

    Ayush replied 4 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Ayush

    Member
    August 28, 2020 at 7:38 am

    lastIndexOf(substring, endPosition)
    Returns the index of the last occurrence of the specified substring, starting from the character at index 0 and ending at the specified index.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos