Matching Strings with match() : Match : Regular Expressions PYTHON TUTORIALS


PYTHON TUTORIALS » Regular Expressions » Match »

 

Matching Strings with match()


import re

m = re.match('foo', 'foo')    # pattern matches string
if m is not None:         # show match if successful
     m.group()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Regular Expressions
» Match