regexp help

Paul McGuire ptmcg at austin.rr.com
Thu Aug 27 21:48:08 EDT 2009


On Aug 27, 1:15 pm, Bakes <ba... at ymail.com> wrote:
> If I were using the code:
>
> (?P<data>[0-9]+)
>
> to get an integer between 0 and 9, how would I allow it to register
> negative integers as well?

With that + sign in there, you will actually get an integer from 0 to
99999999999999999...

-- Paul



More information about the Python-list mailing list