help with replacetext

Klaus Major klaus at major-k.de
Sat Jun 30 08:43:22 EDT 2007


Hi friends,

I am making tiny baby steps with regex stuff but need your help here :-)

I have a list of files like:

image one-01.png
imag22.jpg
i225.png
image crop-22.jpg
imag.tiff
imageimage3 bb.jp
...

And need a list of JPG and PNG files and all numbers that are located  
right before the suffix.
So from the above example it should return:

01
22
22
225
...

You get the picture.

I already filtered all jpg and png files from the list, then I use  
e.g. :
...
put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6
...

but don't know how to add ALL non-numeric chars to the syntax.



Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the Use-livecode mailing list