Bináris,
Hi!2009/11/23 Chris Watkins <chriswaterguy@appropedia.org>I'm using replace.py to create wikilinks. Usually I want to select only the first occurrence of the search string, and my command works fine for this.I don't understand that, how do you select only the first one? For me, replace.py either changes each instance within a page, or nothing.
As far as I understand, at this opont replace.py gives the command to wikipedia.py:
new_text = wikipedia.replaceExcept(new_text, old, new, exceptions,
allowoverlap=self.allowoverlap)
So the solution should be in wikipedia.py.