Admin Forum:Using a bot

I know how to use a bot and all... Just had one question:
 * Is it possible to use a bot to remove all categories from all redirect pages? 13:27, September 5, 2012 (UTC)
 * replace.py maybe, if you can include redirects and filter by page content ("#REDIRECT").--PedroM (talk) 13:52, September 5, 2012 (UTC)
 * Can you elaborate it a bit, please. 13:55, September 5, 2012 (UTC)
 * I am talking pywikipedia. Go through all pages redirects (hey, there is a -redirectonly parameter), replace  \[\[Category:.+\]\]  (you need to set the -regex parameter) with nothing.--PedroM (talk) 14:29, September 5, 2012 (UTC)
 * Well... actually speaking, I am not that very advanced in using a bot. Can you tell me what exactly should I enter in cmd? 14:39, September 5, 2012 (UTC)
 * python replace.py -redirectonly:! -regex '\[\[Category:.+\]\]' '' --PedroM (talk) 15:29, September 5, 2012 (UTC)
 * As it is, right? Thank You very much for your help. 15:35, September 5, 2012 (UTC)