Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Search for a substring  RSS feed

 
mike farad
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
I m looking for a method that checks if a particular string is a part of a string. For example if I want to check if "Sub" is in a String called "SearchSubString". I know this can be done using indexOf().Is there any other way. Thanks in advance.
-Mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!