String Search.

Cliff Wells logiplexsoftware at earthlink.net
Sat Nov 10 00:37:23 CET 2001


On Friday 09 November 2001 15:20, Adonis Vargas wrote:

> if "*something*is*" in "something is written here": return true

import re
s = "hello, world"
if re.search("wor", s) is not None:
    print "found it"
else:
    print "didn't find it"

-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308




More information about the Python-list mailing list