Skip to content
substring
EntityQ2626534· pop 10· linked from 120 articles

Also known as factor, contiguous subword

thumb|"string" is a substring of "substring"

Wikidata facts

Subclass of
string
Part of
string
Show 3 more facts
Commons category
Substring
different from
subsequence
Sources (3)

via Wikidata · CC0

~4 min read

Encyclopedic overview

7 sections
Contents
  • 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.

Available in 9 languages

via Wikidata sitelinks · CC0