<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi guys,<br>
<br>
Op 16-1-2011 12:20, Bináris schreef:
<blockquote
cite="mid:AANLkTikcTufgiFSSxbsgOkmB2ZrF+Hdc6goGoD+zF7Od@mail.gmail.com"
type="cite">What does it mean "didn’t work at all"? What have you
seen on the screen?<br>
Are you sure those are really empty, and no space in them?<br>
<br>
By the way, now I remember, that earlier I had problems, too, when
I wanted to substitute a newline (searching works well).<br>
</blockquote>
Try using \r\n for finding the newline, so someting like "\|\r\n\|-"
"|Yes\n|-"<br>
<br>
Maarten<br>
<blockquote
cite="mid:AANLkTikcTufgiFSSxbsgOkmB2ZrF+Hdc6goGoD+zF7Od@mail.gmail.com"
type="cite">
<br>
<div class="gmail_quote">2011/1/16 CobraSA <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:CobraSA@live.com">CobraSA@live.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div dir="ltr">
<div dir="ltr">
<div style="font-family: 'Calibri'; color: rgb(0, 0, 0);
font-size: 12pt;">
<div>Hi</div>
<div> </div>
<div>Thanks for helping</div>
<div> </div>
<div> </div>
<div>D:\Development\pywikibot>python replace.py
-cat:Dumpers -regex "\|\n\|-" "\|Yes\n\|-"</div>
<div>didn’t work at all</div>
<div> </div>
<div>and without the \ before | it sort of freeze</div>
<div style="font-style: normal; display: inline;
font-family: 'Calibri'; color: rgb(0, 0, 0);
font-size: small; font-weight: normal;
text-decoration: none;">
<div style="font: 10pt tahoma;">
<div> </div>
<div style="background: none repeat scroll 0% 0%
rgb(245, 245, 245);">
<div><b>From:</b> <a moz-do-not-send="true"
title="wikiposta@gmail.com"
href="mailto:wikiposta@gmail.com"
target="_blank">Bináris</a> </div>
<div><b>Sent:</b> Sunday, January 16, 2011 11:39
AM</div>
<div><b>To:</b> <a moz-do-not-send="true"
title="pywikipedia-l@lists.wikimedia.org"
href="mailto:pywikipedia-l@lists.wikimedia.org"
target="_blank">Pywikipedia discussion list</a>
</div>
<div><b>Subject:</b> Re: [Pywikipedia-l] problem
with replace.py</div>
</div>
</div>
<div> </div>
</div>
<div style="font-style: normal; display: inline;
font-family: 'Calibri'; color: rgb(0, 0, 0);
font-size: small; font-weight: normal;
text-decoration: none;">
<div>
<div class="h5">And it is likely that once you have
specified -regex, you have to type \| instead of
|, because | has a special meaning in regexes.<br>
<br>
<div class="gmail_quote">2011/1/16 Bináris <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:wikiposta@gmail.com"
target="_blank">wikiposta@gmail.com</a>></span><br>
<blockquote style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex;
padding-left: 1ex;" class="gmail_quote">First,
you must specify -regex in the command if you
want "\n" to mean a newline instead of literal
\n.<br>
Second, "-cat:Dumpers" is not correct, use
-cat:"Dumpers" or simply -cat:Dumpers instead,
if you want to work with this category. ("" is
only necessary if your category name has a
space.)<br>
<br>
<div class="gmail_quote">2011/1/16 CobraSA <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:CobraSA@live.com"
target="_blank">CobraSA@live.com</a>></span><br>
<blockquote style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt
0.8ex; padding-left: 1ex;"
class="gmail_quote">
<div>
<div dir="ltr">
<div dir="ltr">
<div style="font-family: 'Calibri';
color: rgb(0, 0, 0); font-size:
12pt;">
<div>
<div style="font-style: normal;
display: inline; font-family:
'Calibri'; color: rgb(0, 0,
0); font-size: small;
font-weight: normal;
text-decoration: none;">command:
D:\Development\pywikibot>python
replace.py "-cat:Dumpers"
"|\n|-" "|Yes\n|-"</div>
</div>
<div>
<div style="font-style: normal;
display: inline; font-family:
'Calibri'; color: rgb(0, 0,
0); font-size: small;
font-weight: normal;
text-decoration: none;">It
makes no chnge even the the
dumpers page are full of
tables with | empty followed
by |-</div>
</div>
<div>
<div style="font-style: normal;
display: inline; font-family:
'Calibri'; color: rgb(0, 0,
0); font-size: small;
font-weight: normal;
text-decoration: none;"> </div>
</div>
<div>
<div style="font-style: normal;
display: inline; font-family:
'Calibri'; color: rgb(0, 0,
0); font-size: small;
font-weight: normal;
text-decoration: none;">any
help please?</div>
</div>
</div>
</div>
</div>
<div> </div>
</div>
_______________________________________________<br>
Pywikipedia-l mailing list<br>
<a moz-do-not-send="true"
href="mailto:Pywikipedia-l@lists.wikimedia.org"
target="_blank">Pywikipedia-l@lists.wikimedia.org</a><br>
<a moz-do-not-send="true"
href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l"
target="_blank">https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<font color="#888888">Bináris<br>
</font></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Bináris<br>
</div>
</div>
<p>
</p>
<hr>
<div class="im">
_______________________________________________<br>
Pywikipedia-l mailing list<br>
<a moz-do-not-send="true"
href="mailto:Pywikipedia-l@lists.wikimedia.org"
target="_blank">Pywikipedia-l@lists.wikimedia.org</a><br>
<a moz-do-not-send="true"
href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l"
target="_blank">https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</a><br>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Pywikipedia-l mailing list<br>
<a moz-do-not-send="true"
href="mailto:Pywikipedia-l@lists.wikimedia.org">Pywikipedia-l@lists.wikimedia.org</a><br>
<a moz-do-not-send="true"
href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l"
target="_blank">https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Bináris<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Pywikipedia-l mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pywikipedia-l@lists.wikimedia.org">Pywikipedia-l@lists.wikimedia.org</a>
<a class="moz-txt-link-freetext" href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l">https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</a>
</pre>
</blockquote>
<br>
</body>
</html>