Substring: Difference between revisions

Content deleted Content added
Undid revision 907378369 by 2409:4072:80F:8D76:0:0:C62:E0A4 (talk)
No edit summary
Tags: Mobile edit Mobile web edit
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/>']]
 
Duwbeyebdehsisbw d eueibstring''<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.