https://bugzilla.wikimedia.org/show_bug.cgi?id=70607
--- Comment #4 from Merlijn van Deen valhallasw@arctus.nl --- Okay, I'm a bit confused about the newlines now, as
re.match(r'\n', '\r\n')
does not work. However,
python replace.py -lang:cs -regex -nocase -page:"Roman Polanski" '==\s*Externí odkazy(.*?)\n{{Commonscat' '== Externí odkazy\1\n* {{Commonscat' -summary:"řádkováverze {{Commonscat}}"
*did* work in compat (i.e. the variant without \r in it). I'm not sure why, though.