On Mon, 2010-03-08 at 19:53 +0000, Soren Hansen wrote: > > Perl's eclecticism :-) > > Well, yeah, except this is Python :)
Oh, my... I must have been SO drunk to confuse Perl with Python. But, wait: one could reach a similar level of conciseness even in Python:
re.sub(r"[^A-Za-z0-9]", "_", foo)
-- // Bernie Innocenti - http://codewiz.org/ \X/ Sugar Labs - http://sugarlabs.org/
On Mon, 2010-03-08 at 19:53 +0000, Soren Hansen wrote:
> > Perl's eclecticism :-)
>
> Well, yeah, except this is Python :)
Oh, my... I must have been SO drunk to confuse Perl with Python.
But, wait: one could reach a similar level of conciseness even in
Python:
re.sub( r"[^A-Za- z0-9]", "_", foo)
-- codewiz. org/ sugarlabs. org/
// Bernie Innocenti - http://
\X/ Sugar Labs - http://