Klaus- Saturday, June 30, 2007, 5:43:22 AM, you wrote: > 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 Try this... put matchText(tolower(tFiles5),"([0-9]+)\.", tVar) into tResult if tResult then put tVar end if -- -Mark Wieder mwieder at ahsoftware.net