[Zope] Python String Method

J Cameron Cooper zope-l at jcameroncooper.com
Tue Mar 8 10:04:08 EST 2005


Asad Habib wrote:
> Is there a python function that I can use to detect if a substring
> exists anywhere within another string? I did not come across anything
> in the Python string module that would allow me to do this. Any help would
> be appreciated.

http://docs.python.org/lib/string-methods.html

Look for 'find'.

		--jcc


More information about the Zope mailing list