substring
Speech parts
1. substring - Noun
2. substring - Verb
Meaning
substring (plural substrings)
(computing) A (possibly zero-length) string of characters that is contained in another string.
The substrings of "button" include "butt", "ton", and "on".
(computing, transitive) To extract a substring from.
(computing, transitive) To take as a substring.
Source: en.wiktionary.orgExamples
Line 2 gets a substring of that value from 0, which is the first character, to (but not including) 1, the second character.
Replaces the first substring of this string that matches the given with the given replacement.
The substring begins with the character at the specified index and extends to the end of this string.
When there is a positive-width match at the beginning of this string then an empty leading substring is included at the beginning of the resulting array.