inconsistency? Re: Boy do REs ever suck sometimes...

Roman Suzi rnd at onego.ru
Fri Oct 5 10:28:30 EDT 2001


I think the following behaviour of re module is incorrect:

>>> re.match("^(123)($)", "123\n").group(1, 2)
('123', '')

If $ matches \n, then why doesn't it include it to the
group?

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Friday, October 05, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Common sense is what tells you the world is flat." _/





More information about the Python-list mailing list