multiple arguments for filter?
Devin Asay
devin_asay at byu.edu
Mon Aug 26 17:30:01 EDT 2013
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.
Devin
Devin Asay
Office of Digital Humanities
Brigham Young University
More information about the use-livecode
mailing list