On 7/18/05, Jeremy <[EMAIL PROTECTED]> wrote:
> I am using regular expressions and I would like to use both
> re.IGNORECASE and re.VERBOSE options. I want to do something like the
> following (which doesn't work):
>
> matsearch = r'''^\ {0,4}([mM]\d+) '''
> MatSearch = re.compile(matsearch, re.VERBOSE, re.IGNORECASE)You need to OR them together: re.compile(matsearch, re.VERBOSE | re.IGNORECASE) -- http://mail.python.org/mailman/listinfo/python-list
