Friday, March 29, 2024 07:19

Posts Tagged ‘indexof’

Substring

Friday, April 21st, 2017

A substring is a string located inside another string. To extract a portion of a string (substring), we can use the Substring() method, with some additional parameters, such as the starting index and the character count or length. Whenever the length parameter is omitted, the function will simply return the substring that starts at the specified index until the end of the string.… Read more

Searching for a string within another string

Friday, April 21st, 2017

Another very useful operation when dealing with text is the searching of a certain string or letter inside another string. There are multiple ways of accomplishing this, each behaving in a different way.

The first function that we can use to perform a search is Contains().… Read more


Follow the white rabbit