Getting some chars from a string?

Björnke von Gierke bvg at
Wed Feb 10 09:07:21 EST 2010

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

On 9 Feb 2010, at 20:01, Richmond Mathewson wrote:

> I have a series of image names for the type:
> f#.png
> where # can be a number anywhere between 1 and 6 figures long.
> what I need is to extract the number from the image name.
> SO, starting with
> on mouseEnter
>  put the short name of me into NOMEN
> ................?


official ChatRev page:

Chat with other RunRev developers:
go stack URL ""

More information about the Use-livecode mailing list