How to replace multiple-line text

Martin v. Loewis martin at v.loewis.de
Thu Jul 11 03:02:26 EDT 2002


Alex Martelli <aleax at aleax.it> writes:

> Not sure what regular expressions would have to do with the case.
> I see it as a case of bunching.  Matching multiline text, as long
> as you manage to get it in memory, is just as easy with string
> operations as with re's if it's an exact match you're lookin for --
> re's would be useful if you needed more sophisticated matching,
> but they still need the file's contents to be in memory.

My suspicion is that David is not looking for an exact match - but he
did not provide enough detail to tell.

Regards,
Martin



More information about the Python-list mailing list