2014-09-23 9:47 GMT+02:00 Dick Kriesel <dick.krie...@mail.com>: >> But it really should be a one-liner > > -- given variable tFile, containing the name of a file in the default folder > -- given variable tSize, which is where to put the size of the file > > get matchText( the detailed files, ( "(?m)^\Q" & urlEncode( tFile ) & > ",\E(\d*).*" ), tSize )
Excellent! I like it :) > Too bad it's so hard to read, remember, and type. Dick, Here is a modified version of yours: matchText(the detailed files,("(?m)^" & urlEncode( tFile ) & ",(\d+)" ), tSize) and I really don't find hard at all to read... Regards, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode