A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/105459.html below:

Results not quite what I expected

Results not quite what I expected Results not quite what I expectedRobin Thomas robin.thomas at starmedia.net
Mon Apr 2 15:53:58 EDT 2001
At 02:28 PM 4/2/01 -0500, Kemp Randy-W18971 wrote:
>Alex:
>    I tried your suggestion, and I am close, but not quite.  What is 
> happening with the number split?


>     number = re.compile(r'\d+\.?d*')

Your regex reads, "One or more digits, followed optionally by a '.' 
character, followed by zero or more occurrences of the string 'd'".

You forgot to backslash the last "d".


--
Robin Thomas
Engineering
StarMedia Network, Inc.
robin.thomas at starmedia.net



More information about the Python-list 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