By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

Searching for a piece of string

P: n/a
Hi,
How can i match a part of string and branch to some part of code.
Ex If there is a string like "Timeout" and i want to search only
whether the word "Time" is present in it(which is valid in this
case).so if i have "CastinTime",still this should hold.
I need to use this in a "if" statement and code.Can someone help me
in this.
Thanks .

May 3 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ant
On May 3, 8:35 am, saif.shak...@gmail.com wrote:
Hi,
How can i match a part of string and branch to some part of code.
Ex If there is a string like "Timeout" and i want to search only
whether the word "Time" is present in it(which is valid in this
case).so if i have "CastinTime",still this should hold.
I need to use this in a "if" statement and code.Can someone help me
in this.
Thanks .
if "Time" in text:
# do stuff.

May 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.