Created
December 20, 2011 20:00
-
-
Save llimllib/1503010 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 2.7.2 (default, Aug 1 2011, 14:44:17) | |
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import re | |
>>> m = re.match("a", "alpha") | |
>>> m | |
<_sre.SRE_Match object at 0x10044c920> | |
>>> dir(m) | |
['__class__', '__copy__', '__deepcopy__', '__delattr__', '__doc__', '__format__', '__getattribute__', | |
'__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', | |
'__sizeof__', '__str__', '__subclasshook__', 'end', 'endpos', 'expand', 'group', 'groupdict', 'groups', | |
'lastgroup', 'lastindex', 'pos', 're', 'regs', 'span', 'start', 'string'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment