builtin regular expressions?
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Sat Sep 30 05:33:15 EDT 2006
Antoine De Groote enlightened us with:
> Can anybody tell me the reason(s) why regular expressions are not built
> into Python like it is the case with Ruby and I believe Perl?
They _are_ built into Python. Python ships with the 're' module.
> Python Culture says: 'Explicit is better than implicit'. May it be
> related to this?
The creators of Python chose not to include an extention of the Python
syntax for regular expressions. It's a lot simpler to have a
straight-forward syntax, and simply pass the regular expressions to
the appropriate functions.
Sybren
--
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/
More information about the Python-list
mailing list