search a string

david brochu jr brochu121 at gmail.com
Thu Apr 20 17:23:16 EDT 2006


Hello,


I have a text file with the following string:
['\r\n', 'Pinging www.ebayyy.com [207.189.104.86] with 32 bytes of
data:\r\n', '\r\n', 'Request timed out.\r\n', '\r\n', 'Ping statistics for
207.189.104.86:\r\n', '    Packets: Sent = 1, Received = 0, Lost = 1 (100%
loss),\r\n']


How would I search to find out if the string contained "Request" and report
if "Request" was found or not in the string?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060420/66481095/attachment.html>


More information about the Python-list mailing list