How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

Geoff Canyon gcanyon at
Mon Nov 5 04:29:33 EST 2018

On Sun, Nov 4, 2018 at 7:42 PM Bob Sneidar via use-livecode <
use-livecode at> wrote:

> Simply add 1 to the last offset pointer. If after the first iteration you
> return 1, then set the charsToSkip to 2 instead of offset +
> len(searchString) if you take my meaning.
> Bob S

The method we're using avoids charsToSkip because it suffers mightily with
multi-byte characters. But the latest updates handle overlapping results,
see other posts in this thread.

More information about the use-livecode mailing list