[ create a new paste ] login | about

Link: http://codepad.org/oDslSaJp    [ raw code | fork ]

python@2ch - Python, pasted on Jun 11:
>>> temp='Issac Asimov'
>>>
>>> for key in re.findall('Issac (?!Asimov)', temp):
...   print key
...
>>> for key in re.findall('Issac (?=Asimov)', temp):
...   print key
...
Issac
>>>
>>> for key in re.findall('(?!s )%\((.*?)\)d', MULTI):
...   print key
...
name)s %(year
month
day
>>> for key in re.findall('(?!s)%\((.*?)\)d', MULTI):
...   print key
...
name)s %(year
month
day
>>>
>>> for key in re.findall('(?!.*s)%\((.*?)\)d', MULTI):
...   print key
...
year
month
day


Create a new paste based on this one


Comments: