multiple arguments for filter?

Mark Wieder mwieder at ahsoftware.net
Mon Aug 26 18:27:01 EDT 2013


Jacque-

Monday, August 26, 2013, 2:38:49 PM, you wrote:

> On 8/26/13 4:30 PM, Devin Asay wrote:
>>
>> On Aug 26, 2013, at 3:15 PM, Mark Talluto wrote:
>>
>>>
>>> On Aug 26, 2013, at 2:00 PM, Mark Wieder
>>> <mwieder at ahsoftware.net> wrote:
>>>
>>>> Jacque-
>>>>
>>>> Monday, August 26, 2013, 1:17:22 PM, you wrote:
>>>>
>>>>>> filter tList with ".*\.[GJP][IPN][FG]" -- just .gif, .jpg, .png
>>>>
>>>>> That's pretty clever.
>>>>
>>>> It is. I'd like to take credit for it, but it's Jerry Daniels' doing.
>>>
>>> Can you clarify the [GJP][IPN][FG]?  Are they typos or something new to me?
>>
>>
>> Mark,
>>
>> I'm no regex expert, but I think what this is saying is:
>>
>>   filter the list, including only strings that end with a dot
>> followed by 1st character in [GJP], 2nd character in [IPN], last
>> character in [FG].
>>
>> Clever indeed.

> It will also catch ".JIF". We hope no one has files with extension 
> "PIG". ".GIG" is optional.

Well, I did hedge my bets by saying "sometimes"... the one that might
cause a problem here is "GPG".

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list