str_find1 {rPraat} | R Documentation |
Find string in another string (without regular expressions), returns indices of the first occurence only.
str_find1(string, patternNoRegex)
string |
string in which we try to find something |
patternNoRegex |
string we want to find, "as it is" - no regular exprressions |
index of the first occurence only (1
= 1st character)
str_find
, str_contains
, isString
str_find1("Hello, hello, hello world", "ell") # 2
str_find1("Hello, hello, hello world", "q") # integer(0)