Re: re.search making no match == 0

2007-02-15 Thread Peter Otten
Lance Hoffmeyer wrote: > I have a search: > > VAR = re.search("PROVEN.*?\n[\sA-Za-z\(\)\/\-]+\d(.*?)\n.*?" , pcpT9, re.S > ).group(1) #.split()[1] > > that does not match (sometimes it will and sometimes it will not match) > > Traceback (most recent call last): > File "P:\Burke\TRACKERS\Orth

re.search making no match == 0

2007-02-15 Thread Lance Hoffmeyer
Hey all, I have a search: VAR = re.search("PROVEN.*?\n[\sA-Za-z\(\)\/\-]+\d(.*?)\n.*?" , pcpT9, re.S ).group(1) #.split()[1] that does not match (sometimes it will and sometimes it will not match) Traceback (most recent call last): File "P:\Burke\TRACKERS\Ortho-McNeil\Automation\Wave3\test.