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

Chris Mellon arkanes at
Wed Nov 7 20:22:32 CET 2007

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


> 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