Regular Expressions

Fredrik Lundh fredrik at pythonware.com
Mon Sep 27 03:59:19 EDT 1999


Karl Kreiner <kkreiner at carinthia.com> wrote:
>         I have following problem . I have a multi-line string containing
> several patterns I have to match.
> The problem is, that my patterns may span several lines . The question
> is : How can I express a
> regular expression , that ignores line-feeds and carriage returns ?

use the DOTALL and MULTILINE flags:
http://www.python.org/doc/current/lib/module-re.html

</F>





More information about the Python-list mailing list