MRAB <pyt...@mrabarnett.plus.com> wrote:

>> Yep.  Thanks for pointing that out.  I guess I just assumed that
>> re.split was similar to re.search/match/findall in what it accepted as
>> function parameters.  I guess I'll have to use a \n instead of a ^ for
>> split.
>> 
> You could use the .split method of a pattern object instead:
> 
>      tables = re.compile('^ 1', re.MULTILINE).split(line)

or you might include the flag in the regular expression literal: '(?m)^ 1'

-- 
Duncan Booth http://kupuguy.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to