First you should test it with an unaccented pattern. If it works with English letters, there may be a problem with your character encoding.

2014-09-09 16:42 GMT+02:00 <bugzilla-daemon@wikimedia.org>:
https://bugzilla.wikimedia.org/show_bug.cgi?id=70607

            Bug ID: 70607
           Summary: replace.py does not work
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Other scripts
          Assignee: Pywikipedia-bugs@lists.wikimedia.org
          Reporter: jan.dudik@gmail.com
       Web browser: ---
   Mobile Platform: ---

In compat:
replace.py -regex -nocase -file:aa.log  "==\s*Externí
odkazy(.*?)\r\n\{\{Commonscat" "== Externí odkazy\1\n* {{Commonscat"
-summary:"řádková verze {{Commonscat}}"

Getting 60 pages from wikipedia:cs...
...
No changes were necessary in [[Roman Polák (lední hokejista)]]


>>> Roman Polanski <<<
- {{Commonscat|Roman Polanski}}
+ * {{Commonscat|Roman Polanski}}


In core, the same command:
pwb.py replace -regex -nocase -file:aa.log  "==\s*Externí odkazy(.
*?)\r\n\{\{Commonscat" "== Externí odkazy\1\n* {{Commonscat"  -summary:"řádková
verze {{Commonscat}}"

Retrieving 50 pages from wikipedia:cs.
...
No changes were necessary in [[Roman Polanski]]
No changes were necessary in [[Roman Polák (lední hokejista)]]
No changes were necessary in [[Roman Romaněnko]]


Why?

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Pywikipedia-bugs mailing list
Pywikipedia-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs



--
Bináris