Re: Need Regex for phone number

2010-09-24 Thread Randal L. Schwartz
> "lotug" == lotug writes: lotug> I need regex code to identify 3108222400 phone number. This question was posted (with the same vagueness) to comp.lang.perl.misc. Check out some of the answers there. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http

Re: Need Regex for phone number

2010-09-24 Thread Yogesh Sawant
On Fri, Sep 24, 2010 at 12:50 AM, lotug wrote: > I need regex code to identify 3108222400 phone number. > > If all of your phone numbers are ten digit, then: die "$phone_num is not a ten digit number" unless ($phone_num =~ m/^\d{10}$/); Do you need to include any more criteria? Regards, Yogesh

Re: Need Regex for phone number

2010-09-24 Thread Goke Aruna
Ernest, Can you be a bit more detail into what you have and what you want? Thank On 9/23/10, lotug wrote: > I need regex code to identify 3108222400 phone number. > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http

Need Regex for phone number

2010-09-24 Thread lotug
I need regex code to identify 3108222400 phone number. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/