> > > match = re.search( r'(v|V|_v|_V)\d+', myPath) > a slightly more elegant way of writing this regular expression would be: '_?[vV]\d+'
_? optional underscore [vV] one of any of the enclosed characters \d+ one or more numbers
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
