Answers for "string goes here"

0

string goes here

p = re.compile( ... )
m = p.match( 'string goes here' )
if m:
    print('Match found: ', m.group())
else:
    print('No match')
Posted by: Guest on October-22-2021
0

string goes here

>>> print(re.match(r'amk\s+', 'Fromage amk'))
None
>>> re.match(r'amk\s+', 'From amk Thu May 14 19:12:10 1998')  
<re.Match object; span=(0, 5), match='From '>
Posted by: Guest on October-22-2021

Code answers related to "string goes here"

Browse Popular Code Answers by Language