RE

Carey Evans careye at spamcop.net
Mon Jan 7 02:37:48 EST 2002


Christophe Delord <christophe.delord at free.fr> writes:

> In regular expressions, the dot (.) doesn't match newlines.

It does if you pass the re.S flag, e.g.

    re.search('<tag>(.*)</tag>', data, re.S)

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/

                             Cavem canus.



More information about the Python-list mailing list