help with replacetext

Mark Wieder mwieder at ahsoftware.net
Sat Jun 30 13:21:28 EDT 2007


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

Interesting. That's a bit of a weird request (just the numbers before
the delimiter and nothing else), but I think I see where you're going
with that. I think there's bug in the regex implementation of the
matchText command. This *should* work:

put matchText(tolower(tFiles5),".*([0-9]*)\.", tVar) into tResult
put tVar

but it only returns one digit instead of all of them. The regex is
correct and works outside of rev, but it doesn't work here.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list