madisonmay/CommonRegex — pull request #1 by qw1mb0 (2013-12-24 19:21:27+00:00)
Title: Fix raw string literal and add better ip regex

Hello, madisonmay!
I'm fix spaces (1 Tab = 2 space, not 4 space).
Add better ip regex.
And fix raw string literal, because on my system this led to some error, like that:
wimbo@wimbo-hp:~/github/CommonRegex$ python3 commonregex.py
File "commonregex.py", line 18
return (ur'(?:' + regex + ur')?')
^
SyntaxError: invalid syntax

But after remove i'm test on Python 2.7.4 and 3.3.1:
wimbo@wimbo-hp:~/github/CommonRegex$ python2 --version
Python 2.7.4
wimbo@wimbo-hp:~/github/CommonRegex$ python2 commonregex.py
['Jan 9th 2012', '8/23/12']
['8:00', '5:00AM']
['(520) 820 7123', '1-230-241-2422']
[]
['john_smith@gmail.com']
['127.0.0.1']
wimbo@wimbo-hp:~/github/CommonRegex$ python3 --version
Python 3.3.1
wimbo@wimbo-hp:~/github/CommonRegex$ python3 commonregex.py
['Jan 9th 2012', '8/23/12']
['8:00', '5:00AM']
['(520) 820 7123', '1-230-241-2422']
[]
['john_smith@gmail.com']
['127.0.0.1'

Looks right, What do you think?

Sorry my bad english.