Open GoogleCodeExporter opened 9 years ago
Actually, to match the existing convention of:
keep
rekeep
lose
relose
...I think it should be named
rereplace
Original comment by elron...@gmail.com
on 21 Jan 2014 at 6:44
Adding a patch to add the proposed rereplace... with it, if you run:
echo '123' | pyp "p.rereplace('BLAH', '_')"
echo '123' | pyp "p.rereplace('[123]', 'x')"
...you get the "EXPECTED" results given above...
Original comment by elron...@gmail.com
on 21 Jan 2014 at 6:52
Attachments:
Oh, and if this patch is accepted, should probably update the docs / wiki to
suggest people use p.rereplace, instead of p.replace(p.re(), ...)
Original comment by elron...@gmail.com
on 21 Jan 2014 at 6:53
thanks for this. sorry for the late reply. this made it in. I'll be rolling out
a beta in the next few days.
t
Original comment by tobyro...@gmail.com
on 9 Feb 2015 at 10:29
Cool, glad to hear it made it in! =)
Original comment by elron...@gmail.com
on 9 Feb 2015 at 11:57
Original issue reported on code.google.com by
elron...@gmail.com
on 21 Jan 2014 at 6:42