How to find the offset of the last instance of a repeating character in a string?

Keith Clarke keith.clarke at me.com
Mon Oct 29 11:32:35 EDT 2018


Folks,
Is there a simple way to find the offset of a character from the ‘right’ end of a string, rather than the beginning - or alternatively get a list of all occurrences?

I’m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ‘/‘ character.

Thanks & regards,
Keith



More information about the use-livecode mailing list