[BangPypers] regular expression for Indian landline numbers

Kenneth Gonsalves lawgon at au-kbc.org
Thu Nov 25 11:06:40 CET 2010


On Thu, 2010-11-25 at 15:32 +0530, Noufal Ibrahim wrote:
> > r'(^0\d{2}[-\s]{1}[1-6]{1}\d{7})|(^0\d{3}[-\s]{1}[1-6]{1}\d{6})|(^0
> > \d{4}[-\s]{1}[1-6]{1}\d{5})'
> >
> > any clues on how to make it shorter? And any info as to whether my
> > assumptions as to the landline numbers is correct?
> 
> This is the Python list. Not Perl. :) 

huh? I do not see any perl in my post
-- 
regards
Kenneth Gonsalves



More information about the BangPypers mailing list