[Tutor] Help Python String Search

Deitemeyer, Adam R Adam.R.Deitemeyer at boeing.com
Mon Oct 6 23:37:11 CEST 2008


Hello,
 
I'm a beginner Python user and I have simple python issue I can't seem
to solve.  I want to do a truth test on a string to see if a another
string is contained within it.  I found that typically the re module has
the methods to accomplish this.  However, every string I'm searching
begins with a metacharacter.  For example: if the string '*I need *help'
contains the word 'help' then true, else false..  Any advice you can
provide would be great. 
 
Thanks,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081006/f771768b/attachment.htm>


More information about the Tutor mailing list