write a regex matches 800-555-1212, 555-1212, and also (800) 555-1212.

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Sep 28 21:58:51 EDT 2012


On 29/09/2012 02:35, Tim Chase wrote:
> On 09/28/12 19:31, iMath wrote:
>> write a regex matches 800-555-1212, 555-1212, and also (800) 555-1212.
>
> Okay, that was pretty easy.  Thanks for the challenge :-)
>
> -tkc
>

What's the run time speed like?  How much memory does it use?  Shouldn't 
you be using the regex module from pypi instead of the standard library 
re?  Guess who's borrowed the time machine?

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list