startswith() and endswith() for re's would be more intuitive
onurb at xiludom.gro
Thu Sep 28 16:29:42 CEST 2006
> I just finished answering a question in #python because someone tried
> to match using ... well.. match()
> but did not realize that match() is actually startswith() for regexps.
Yet someone else that failed to read the Fine Manual(tm).
> I suggest:
What's wrong with:
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list