Content deleted Content added
HeyElliott (talk | contribs) |
this has a cite in the body immediately below |
||
Line 4:
[[File:Substring.png|thumb|"''string''" is a substring of "''substring''"]]
In [[Formal language|formal language theory]] and [[computer science]], a '''substring''' is a contiguous sequence of [[Character (computing)|character]]s within a [[String (computer science)|string]]
'''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>.
|