Regex problem with multiline matches

Randall Hopper aa8vb at yahoo.com
Fri Oct 29 15:08:48 EDT 1999


Why doesn't the second match find 'bb'?


     >>> print re.compile( "b(.)", re.M ).match( "bb" )
     <re.MatchObject instance at 1013a218>

     >>> print re.compile( "b(.)", re.M ).match( "aa\nbb" )
     None


Thanks,

Randall




More information about the Python-list mailing list