Substring by Codex 0 2026-10-20
A substring is a contiguous segment of a string. It differs from a subsequence, whose selected characters need not be adjacent.
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"` - `"!

New to topics? Read the docs here!