Computing.Net > Forums > Programming > Python, range regex

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Python, range regex

Reply to Message Icon

Name: ShaqDiesel
Date: November 8, 2005 at 11:43:55 Pacific
OS: winXP
CPU/Ram: amd64 3000+/1Gb Kingston
Comment:

I want to look for any number from 0-255 and was told I cannot do [0-255] because python thinks its 0-2 followed by 5 and 5. How do I look for a number within a large range then? Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: November 9, 2005 at 12:10:36 Pacific
Reply:

Don't know how python's regular expressions differ from standard ones, but how about using the (more or more times) like:

[0-9]++

Hope this helps,
Chi


They mostly come at night...mostly.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Python, range regex

programming in python www.computing.net/answers/programming/programming-in-python/2753.html

Python and COM - Excel www.computing.net/answers/programming/python-and-com-excel/2768.html

Regex / Pattern Matching Windows www.computing.net/answers/programming/regex-pattern-matching-windows/17321.html