Re: Python's regular expression?
Davy wrote:[color=blue]
> Hi all,
>[/color]
(snip)[color=blue]
> Does Python support robust regular expression like Perl?[/color]
Yes.
[color=blue]
> And Python and Perl's File content manipulation, which is better?[/color]
From a raw perf and write-only POV, Perl clearly beats Python (regarding
I/O, Perl is faster than C - or it least it was the last time I benched
it on a Linux box).
From a readability/maintenance POV, Perl is a perfect nightmare.
[color=blue]
> Any suggestions will be appreciated![/color]
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xiludom. gro'.split('@')])"
Davy wrote:[color=blue]
> Hi all,
>[/color]
(snip)[color=blue]
> Does Python support robust regular expression like Perl?[/color]
Yes.
[color=blue]
> And Python and Perl's File content manipulation, which is better?[/color]
From a raw perf and write-only POV, Perl clearly beats Python (regarding
I/O, Perl is faster than C - or it least it was the last time I benched
it on a Linux box).
From a readability/maintenance POV, Perl is a perfect nightmare.
[color=blue]
> Any suggestions will be appreciated![/color]
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xiludom. gro'.split('@')])"
Comment