Description Usage Arguments Details Value See Also Examples
These functions extract substrings of str that match
a given pattern.
Generally, this is the way to extract single characters,
only. Longer substrings, however, may be extracted, with
the stri_extract_all_charclass function and
merge=TRUE.
| 1 2 3 4 5 | 
| str | character vector to search in | 
| pattern | character vector; identifiers of character classes, see stringi-search-charclass | 
| merge | logical [ | 
Vectorized over str, pattern, and
merge.
For stri_extract_all_charclass, a list of
max(length(str), length(pattern), length(merge))
character vectors is returned. Otherwise, you get a
character vector. NA if not found.
Other search_charclass: stri_count_charclass;
stri_detect_charclass;
stri_locate_all_charclass,
stri_locate_all_charclass,
stri_locate_first_charclass,
stri_locate_first_charclass,
stri_locate_last_charclass,
stri_locate_last_charclass;
stri_replace_all_charclass,
stri_replace_all_charclass,
stri_replace_first_charclass,
stri_replace_first_charclass,
stri_replace_last_charclass,
stri_replace_last_charclass;
stri_split_charclass,
stri_split_charclass;
stri_trim, stri_trim,
stri_trim_both, stri_trim_left,
stri_trim_right;
stringi-search-charclass;
stringi-search
Other search_extract: stri_extract_all_fixed,
stri_extract_all_fixed,,
stri_extract_first_fixed,
stri_extract_first_fixed,,
stri_extract_last_fixed,
stri_extract_last_fixed;
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_extract_all;
stri_extract_first;
stri_extract_last;
stri_extract; stringi-search
| 1 2 3 4 | stri_extract_all_charclass(c('AbcdeFgHijK', 'abc', 'ABC'), 'Ll')
stri_extract_all_charclass(c('AbcdeFgHijK', 'abc', 'ABC'), 'Ll', merge=FALSE)
stri_extract_first_charclass('AaBbCc', 'Ll')
stri_extract_last_charclass('AaBbCc', 'Ll')
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.