Search and replace with Pywikipediabot
79,380pages on
this wiki
this wiki
Forum page
This Forum has been archived
Visit the new ForumsForums: Index → Support Requests → Search and replace with Pywikipediabot
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 341 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.
Hi,
I am trying to search and replace sections of several lines with "replace.py". Let's say for example the page content is
first second third
and I want to replace the first two lines with "new" so the new content is
new third
How can I do this? I tried something like
replace.py -multiline -page:mypage "^first$^second$" "new"
but that doesn't work.
Any ideas? Thanks in advance --Weas-El 18:35, June 14, 2012 (UTC)
- I'm referring Randomtime here. He's who I go to for pybot questions. Rappy 19:16, June 14, 2012 (UTC)
- Great, I'll try that, thanks. --Weas-El
20:19, June 14, 2012 (UTC)
- Great, I'll try that, thanks. --Weas-El