split and regexp on textfile

mik3l3374 at gmail.com mik3l3374 at gmail.com
Fri Apr 13 05:14:41 EDT 2007


On Apr 13, 4:55 pm, "Flyzone" <flyz... at technologist.com> wrote:
> On 13 Apr, 10:40, mik3l3... at gmail.com wrote:
>
> > you trying to match the date part right? if re is what you desire,
> > here's one example:
>
> Amm..not! I need to get the text-block between the two data, not the
> data! :)

change to pat.split(data) then.
I get this:

['', '\ntext\ntext\n', '\ntext\ntext ']




More information about the Python-list mailing list