String Search.
Cliff Wells
logiplexsoftware at earthlink.net
Fri Nov 9 18:37:23 EST 2001
More information about the Python-list mailing list
Fri Nov 9 18:37:23 EST 2001
- Previous message (by thread): String Search.
- Next message (by thread): String Search.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): String Search.
- Next message (by thread): String Search.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list