Source: wikibot/substring
= Substring
{wiki=Substring}
A substring is a contiguous sequence of characters within a string. In programming and computer science, a string is typically a data type used to represent text, and a substring is simply any portion of that string. For example, if you have the string \`"Hello, world!"\`, some possible substrings include: - \`"Hello"\` - \`"Hello, "\` - \`"world"\` - \`"lo, wo"\` - \`"!