[Tutor] What the difference between the two RE?

daedae11 daedae11 at 126.com
Thu Feb 9 07:15:04 CET 2012


import re
re.match("^hello", "hello")
re.match("hello", "hello")

Please give a string that matches RE "^hello" but does not match RE "hello", or matches RE "hello" but does not match RE "^hello".




daedae11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120209/03e4f2ad/attachment.html>


More information about the Tutor mailing list