Pages

Tuesday, March 22, 2011

Python - Regular Expression

Module re is for handling regular expression:
>>> import re
>>> name = re.split(':', 'lady gaga:luna maya:barack obama')
>>> print name

No comments:

Post a Comment