Get number of occurrences of one string in another

David Beck david at rotundasoftware.com
Wed Feb 22 22:19:13 EST 2012


Is there any way, in the native LiveCode language, to check for the number of occurrences of one string in another? FOr example:

put substringCount( "p", "apple" )
// returns 2

just curious

Thanks!



More information about the use-livecode mailing list