https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
Web browser: --- Bug ID: 55078 Summary: replace.py -match option Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/219/ Reported by: Anonymous user Created on: 2009-08-21 18:38:13 Subject: replace.py -match option Original description: Hello! It would be nice, if you add -match option to replace.py, that means that script will work only on pages which match some regexp.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- How would this be different than the "-regex" option that already exists?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: open --> pending
https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- -regex is used for replacement. How can we solve task such "replace text using some regex if article match some regex"?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: pending --> open
https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- do you expect sth like -requiretext:XYZ (in combination with -regex) which could be the opposite of -excepttext:XYZ, analogous to the existing -requiretitle vs -excepttitle ?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
--- Comment #6 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Yep, something like that.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/219
https://bugzilla.wikimedia.org/show_bug.cgi?id=55078
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Component|General |Other scripts
pywikipedia-bugs@lists.wikimedia.org