A
substring of a
string ![](http://bis.babylon.com/?rt=GetFile&uri=!!ARV6FUJ2JP&type=0&index=1770)
is another string
![](http://bis.babylon.com/?rt=GetFile&uri=!!ARV6FUJ2JP&type=0&index=1102)
that occurs "in"
![](http://bis.babylon.com/?rt=GetFile&uri=!!ARV6FUJ2JP&type=0&index=1770)
. For example, "the best of" is a substring of "It was the best of times". This is not to be confused with
subsequence, which is a
generalization of substring. For example, "Itwastimes" is a subsequence of "It was the best of times", but not a substring.