By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,420 Members | 1,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,420 IT Pros & Developers. It's quick & easy.

Re: regex help

P: n/a
Le Monday 30 June 2008 16:53:54 Support Desk, vous avez Ă©critÂ*:
I am working on a web-app, that querys long distance numbers from a
database of call logs. I am trying to put together a regex that matches any
number that does not start with the following. Basically any number that
does'nt start with:








is long distance any, help would be appreciated.
sounds like str.startswith() is enough for your needs:

if not number.startswith(('281', '713', '832', ...)) :

CĂ©dric Lucantis
Jun 30 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.