Hi Richmond, Wouldn’t that just delete the last char? I need to check for all characters in the first string to see if they all exist in the same order of the last chars of the second string. I know I could use a repeat to see if the characters all exist and then if they do I could use a repeat that many times to delete the last character. I was thinking there might be a faster or at least smaller way to write the code. Would a regex be better and if so how do you write the regex properly?
John Balgenorth On Aug 24, 2014, at 8:14 AM, Richmond <richmondmathew...@gmail.com> wrote: > On 24/08/14 17:12, JB wrote: >> If I have a certain amount of characters >> and I want to check the end of another >> line of characters to see if they are there >> and if so then delete them what is the >> fastest way to do delete the characters >> at the end of the specified line? >> >> > > delete last char of XYZ [where 'XYZ" is a string] > > delete last char of fld "XYZ" > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode