![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: A simple question string.replace
From: bruno at modulix <onurb@xiludom.gro>
Date: Tue Jan 31 2006 - 11:07:55 CET
Haibao Tang wrote:
I suppose that you don't want '11.1' to be affected.
raw_data="""
data = filter(None, [line.strip().split() \
Not sure this is the fastest solution...
BTW, may I ask why you don't want to use regexp ?
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xiludom.gro'.split('@')])"
Received on Tue Feb 7 20:19:35 2006
|