<div class="gmail_quote">2011/6/28 Morten Wang <span dir="ltr">&lt;<a href="mailto:nettrom@gmail.com">nettrom@gmail.com</a>&gt;</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><div></div><div class="h5"></div></div><div>As far as I can tell from looking at the code, the replacement is done by replaceExcept() in textlib.py, and the documentation there clearly states that you can use a function for replacing (there&#39;s a check if the replacement is a callable function, and if it is that function is called, thus working the same way as re.sub() does).</div>
</blockquote><div><br>You have just opened a new horizon in front of me. I will do the test and then rewrite the documentation of replace.py if this works.<br></div></div><br>-- <br>Bináris<br>