
substring
Sign in to saveAlso known as factor, contiguous subword
thumb|"string" is a substring of "substring"
Wikidata facts
Show 3 more facts
- Stack Exchange tag
- stackoverflow.com/tags/substring
- Commons category
- Substring
- different from
- subsequence
Sources (3)
via Wikidata · CC0
~4 min read
Encyclopedic overview
7 sectionsContents
- Substring
- Prefix
- Suffix
- Border
- Superstring
- See also
- References
thumb|"string" is a substring of "substring"
In formal language theory and computer science, a substring is a contiguous sequence of characters within a string. For instance, "the best of" is a substring of "It was the best of times". In contrast, "Itwastimes" is a subsequence of "It was the best of times", but not a substring.
Excerpted from Wikipedia’s “substring” article, available under the CC BY-SA 4.0 licence.