filter list_of_files with REGEX xyz?
Klaus major-k
klaus at major-k.de
Fri Aug 17 09:14:54 EDT 2018
Hi Brian,
> Am 17.08.2018 um 14:40 schrieb Brian Milby via use-livecode <use-livecode at lists.runrev.com>:
>
> Pattern “*.(jpe?g|png|gif)”
thanks, but that does not work!?
I tried:
on mouseUp pMouseButton
answer folder "sdsdsdsd"
put it into tFolder
put files(tFolder) into tList
filter tList with pattern "*.(jpe?g|png|gif)"
answer tList
end mouseUp
tList = EMPTY, I made of course sure there are JPG, PNG and GIF files in that folder.
Same when I use:
...
filter lines of tList with pattern "*.(jpe?g|png|gif)"
...
Any clues?
> Thanks,
You're welcome! :-)
> Brian
> On Aug 17, 2018, 6:44 AM -0500, Klaus major-k via use-livecode <use-livecode at lists.runrev.com>, wrote:
>> Hi friends,
>>
>> I know how to:
>> ...
>> filter list_of_files with "*.jpg"
>> ...
>> But REGEX stuff is way over my head. :-/
>> Can anyone provide the regex/pattern syntax for filtering
>> jpg, png etc. in ONE run? Know what I mean?
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list