Getting some chars from a string?

Richmond Mathewson richmondmathewson at gmail.com
Wed Feb 10 11:56:19 EST 2010


On 10/02/2010 16:07, Björnke von Gierke wrote:
> you already got a few interesting entries to try, but I haven't seen this one. I'd use this, because I suck at regexp and because one never know if someone added a suffix of "jpeg" or "jpg" or "j" or...
>
> function removeSuffix theName
>    set the itemdelimiter to "."
>    return item 1 to -2 of theName
> end removeSuffix
>
>    
That one IS clever!




More information about the use-livecode mailing list