builtin regular expressions?
Jorgen Grahn
grahn+nntp at snipabacken.dyndns.org
Sun Oct 1 04:30:32 EDT 2006
On Sat, 30 Sep 2006 11:24:56 +0200, Antoine De Groote <antoine at vo.lu> wrote:
> Hello,
>
> 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?
In a way, there /is/ builtin support -- regexes would be much more painful
to use unless you had the regex-quoted strings.
r'\s*(\d+),\s*(\d+)\s='
'\\s*(\\d+),\\s*(\\d+)\\s='
/Jorgen
--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn!
More information about the Python-list
mailing list