[ create a new paste ] login | about

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

Python, pasted on Oct 18:
1
2
3
4
import re
pm = re.compile(r'.*\b(dog)$')
has = pm.match("i love dog")
print(has)


Output:
1
<_sre.SRE_Match object at 0x4034abe0>


Create a new paste based on this one


Comments: