HiThanks for helpingD:\Development\pywikibot>python replace.py -cat:Dumpers -regex "\|\n\|-" "\|Yes\n\|-"didn’t work at alland without the \ before | it sort of freezeFrom: BinárisSent: Sunday, January 16, 2011 11:39 AMSubject: Re: [Pywikipedia-l] problem with replace.pyAnd it is likely that once you have specified -regex, you have to type \| instead of |, because | has a special meaning in regexes.
2011/1/16 Bináris <wikiposta@gmail.com>
First, you must specify -regex in the command if you want "\n" to mean a newline instead of literal \n.
Second, "-cat:Dumpers" is not correct, use -cat:"Dumpers" or simply -cat:Dumpers instead, if you want to work with this category. ("" is only necessary if your category name has a space.)
2011/1/16 CobraSA <CobraSA@live.com>
_______________________________________________command: D:\Development\pywikibot>python replace.py "-cat:Dumpers" "|\n|-" "|Yes\n|-"It makes no chnge even the the dumpers page are full of tables with | empty followed by |-any help please?
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
--
Bináris
--
Bináris
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l