Description Usage Arguments Details Value See Also Examples
This function checks if there is at least one match to a regex pattern in a string.
| 1 | stri_detect_regex(str, pattern, opts_regex = list())
 | 
| str | character vector of strings to search in | 
| pattern | character vector of regular expressions | 
| opts_regex | a named list as generated with
 | 
Unless you are very lazy, please call the underlying functions directly for better performance.
Vectorized over str and pattern.
If pattern is empty, then the result is NA
and a warning is generated.
Returns a logical vector.
Other search_detect: stri_detect_charclass;
stri_detect_fixed; stri_detect;
stringi-search
Other search_regex: stri_count_regex;
stri_extract_all_regex,
stri_extract_all_regex,
stri_extract_first_regex,
stri_extract_first_regex,
stri_extract_last_regex,
stri_extract_last_regex;
stri_locate_all_regex,
stri_locate_all_regex,
stri_locate_first_regex,
stri_locate_first_regex,
stri_locate_last_regex,
stri_locate_last_regex;
stri_match_all_regex,
stri_match_all_regex,
stri_match_first_regex,
stri_match_first_regex,
stri_match_last_regex,
stri_match_last_regex;
stri_opts_regex;
stri_replace_all_regex,
stri_replace_all_regex,
stri_replace_first_regex,
stri_replace_first_regex,
stri_replace_last_regex,
stri_replace_last_regex;
stri_split_regex,
stri_split_regex;
stringi-search-regex;
stringi-search
| 1 2 3 4 5 6 7 8 | ## Not run: 
stri_detect_regex(c("stringi w R","REXAMINE","123"), 'R.')
stri_detect_regex(c("stringi w R","REXAMINE","123"), '[[:alpha:]]*?')
stri_detect_regex(c("stringi w R","REXAMINE","123"), '[a-zC1]')
stri_detect_regex(c("stringi w R","REXAMINE","123"), '( R|RE)')
stri_detect_regex("stringi", "STRING.", opts_regex=stri_opts_regex(case_insensitive=TRUE))
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.