469,906 Members | 2,218 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,906 developers. It's quick & easy.

Re: regex help

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
0 646

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by jeevankodali | last post: by
17 posts views Thread by clintonG | last post: by
7 posts views Thread by Mike Labosh | last post: by
9 posts views Thread by jmchadha | last post: by
7 posts views Thread by Extremest | last post: by
6 posts views Thread by Phil Barber | last post: by
reply views Thread by Support Desk | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.