str_find: str_find

Description Usage Arguments Value See Also Examples

View source: R/rpraat.R

Description

Find string in another string (without regular expressions), returns indices of all occurences.

Usage

1
str_find(string, patternNoRegex)

Arguments

string

string in which we try to find something

patternNoRegex

string we want to find, "as it is" - no regular exprressions

Value

indices of all occurences (1 = 1st character)

See Also

str_find1, str_contains, isString

Examples

1
2
str_find("Hello, hello, hello world", "ell")   # 2 9 16
str_find("Hello, hello, hello world", "q")     # integer(0)

bbTomas/rPraat documentation built on Dec. 26, 2021, 2:08 a.m.