file size
Thierry Douez
th.douez at gmail.com
Tue Sep 23 04:13:12 EDT 2014
2014-09-23 9:47 GMT+02:00
Dick Kriesel <dick.kriesel at 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
More information about the use-livecode
mailing list