[Pywikipedia-l] recognizing a leading space in replace.py

Chris Watkins chriswaterguy at appropedia.org
Tue Feb 17 21:40:19 UTC 2009


I'm trying to run this command:

python replace.py -regex " (from wikipedia)}}" "}}" -file:sfwn1e -log:sfwlog
-summary:"adding argument to {{from wikipedia raw}} template - Step 2 of 2,
change local pagename to Wikipedia pagename"

But I get the output:

No changes were necessary in [[Oral rehydration therapy (from Wikipedia)]]

for every file, even though this text is present in every file:
 (from wikipedia)}}

...including the leading space.

Do I need to use a special character to insert the space? (And regex?) I
tried %20 instead of the space but it didn't work.

Thanks

-- 
Chris Watkins (a.k.a. Chriswaterguy)

Appropedia.org - Sharing knowledge to build rich, sustainable lives.

identi.ca/appropedia / twitter.com/appropedia
blogs.appropedia.org

I like this: five.sentenc.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20090217/ec55e48e/attachment.htm 


More information about the Pywikipedia-l mailing list