Re: Regular Expression LUT matching


It should pick the latest filename of all matches in alphabetical/numerical order so that in case we have


it would default to the latest version of each shot.

Now looking into FNMatch I think it's even more suitable than regex because it's simple and keeps the config easy to maintain.

Am Donnerstag, 29. August 2013 10:24:34 UTC-7 schrieb Jeremy Selan:

Interesting idea.  Not currently possible, very do-able.

What if multiple luts match the specified pattern?  Which would be selected? Or would this be an error?

What are your thoughts on full regex vs just fnmatch?  (fnmatch would get you wildcards and seq match).

* matches everything
? matches any single character
[seq] matches any character in seq
[!seq] matches any character not in seq

 The only challenge is that we'd have to make sure it works on windows too (I've never tried regex or posix fnmatch on win).

-- Jeremy

On Wed, Aug 28, 2013 at 11:36 PM, <nhatp...@...> wrote:

In a scenario where the LUT name consists of some known variables and an arbitrary string I would like to use something like regular expressions to match the LUT file. For example,


it would be useful to write in the config file:


I don't know if that's possible, but it would be handy though.



You received this message because you are subscribed to the Google Groups "OpenColorIO Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit

Join to automatically receive all group messages.