Substring: Difference between revisions

Content deleted Content added
m top: Fix capitalization. Improve formatting of Wikitext while I'm here.
Reordered the "apple" example to be more logical and clear.
Line 7:
'''Prefixes''' and '''suffixes''' are special cases of substrings. A prefix of a string <math>S</math> is a substring of <math>S</math> that occurs at the beginning of <math>S</math>; likewise, a suffix of a string <math>S</math> is a substring that occurs at the end of <math>S</math>.
 
The list of all substrings of the string "''apple''" would be :
"''applea''", "''applap''", "''ppleapp''", "''appappl''",
"''pplp''", "''plepp''", "''apppl''", "''pppple''",
"''pl''", "''leple''",
"''al''", "''ple''", "''l''",
"''e''", "" .
(note the [[empty string]] at the end).
 
== Substring ==