Hi Chris,
Am Freitag 22 August 2008 08:25:09 schrieb Chris Watkins:
Is it possible to do it this way?:
- Recognize the pattern where the term is already wikilinked, and then
skip that page; and then 2. If the wikilinked term doesn't already exist, *then* perform the search and replace operation.
try the -excepttext parameter:
replace.py ... -regex -excepttext:[[sustainability[]|]
This will skip all pages that contain "[[sustainability]" or "[[sustainability|". You might also want to handle the capital letter S:
replace.py ... -regex -excepttext:[[[sS]ustainability[]|]
I haven't tested all this, but it should be a good start for you to experiment with. If you run into trouble, just write to this mailing list again.
Cheers
Daniel