Find
Another powerful function to help us search strings is the Find function. The Find function searches strings for the first occurrence of the specified substring and returns the position of that substring. If the substring is not found in string, Find returns a value of 0.
If startpos is not specified, Find starts the search at the beginning of the string and searches the string from left to right. If startpos is specified, the absolute value of startpos determines the position at which to start the search. The sign of startpos determines the direction of the search. The Find function and the Index function both search for substrings of characters in a character string. However, the Index function does not have the modifiers, nor the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access