regular expression syntax the same in Python, Perl and grep?

Chris Mellon arkanes at gmail.com
Wed Nov 7 14:22:32 EST 2007


On Nov 7, 2007 12:11 PM, seberino at spawar.navy.mil
<seberino at spawar.navy.mil> wrote:
> How similar is Python's re module (regular expressions) compared
> to Perl's and grep's regular expression syntaxes?
>

Somewhat.

> I really hope regular expression syntax is sufficiently standardized
> that
> we don't have to learn new dialects everytime we move from one
> language or shell command to another.
>

It isn't, at least for non-trivial use of regexps.



More information about the Python-list mailing list