All pastes #252474 Raw Edit

Untitled

public text v1 · immutable
#252474 ·published 2006-11-19 16:25 UTC
rendered paste body
~ $ python
Python 2.4.3 (#2, Sep 18 2006, 19:28:43) 
[GCC 4.1.1 20060724 (prerelease) (4.1.1-3mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> flashvar="coin?url=plop.flv&erert"
>>> a=re.match('url=(.*?)\.flv',flashvar)
>>> a
>>> a=re.search('url=(.*?)\.flv',flashvar)
>>> a
<_sre.SRE_Match object at 0x2ac476d0a920>
>>> a.group
a.group      a.groupdict  a.groups     
>>> a.groups()
('plop',)
>>>