A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/048234.html below:

Complete, Structured Regular Expression Group Matching

[Python-Dev] Re: pre-PEP [corrected]: Complete, Structured Regular Expression Group MatchingFredrik Lundh fredrik at pythonware.com
Mon Aug 23 13:41:26 CEST 2004
Mike Coleman wrote:

>> >>> parse("hello 1 2 3 4 # 5", "(\w+)", "\s*(\d+)")
>> ('hello', ['1', '2', '3', '4'], ' # 5')
>
> No offense, but this code makes me cringe.  The "|." trick seems like a
> horrific hack

"or any other character" a horrific hack?  that's RE 101, really.

and you're supposed to *use* the code, not stare at the implementation.
programming is all about abstractions, remember?

</F> 



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4