multiple arguments for filter?

J. Landman Gay jacque at hyperactivesw.com
Mon Aug 26 17:38:49 EDT 2013


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.


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list