Content deleted Content added
No edit summary Tags: Mobile edit Mobile web edit |
m Reverted edits by 2600:1700:9270:CE30:AD74:6F5A:79B9:8BCB (talk) (HG) (3.4.9) |
||
Line 1:
{{About|definition of a substring|the computer function which performs this operation|String functions (programming)}}
[[File:Substring.png|thumb|'<nowiki/>''string''<nowiki/>' is a subs<nowiki/>tring of <nowiki/>'<nowiki/>''substring''<nowiki/>']]
A '''substring''' is a contiguous sequence of characters within a [[String (computer science)|string]]. For instance, "''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.
|