Re: re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Reinhold Birkenfeld
Simon Brunning wrote: > 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): >&g

Re: re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Reinhold Birkenfeld
Jeremy 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.co

Re: re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Simon Brunning
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

Re: re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Peter Decker
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

re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Jeremy
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