Description Usage Arguments Details Value See Also Examples
These functions extract substrings of str
that match
a given pattern
.
1 2 3 4 5 | stri_extract_all_fixed(str, pattern, opts_collator = list())
stri_extract_first_fixed(str, pattern, opts_collator = list())
stri_extract_last_fixed(str, pattern, opts_collator = list())
|
str |
character vector |
pattern |
character vector |
opts_collator |
a named list as generated with
|
Vectorized over str
and pattern
.
If collator_opts
is not NA
(default, i.e.
locale-aware search), then the operation is not as dummy as
it seems (for non-ASCII text).
For stri_extract_all_fixed
, a list of
max(length(str), length(pattern))
character vectors
is returned. Otherwise, you get a character vector.
NA
if not found.
Other search_extract:
stri_extract_all_charclass
,
stri_extract_all_charclass
,
stri_extract_first_charclass
,
stri_extract_first_charclass
,
stri_extract_last_charclass
,
stri_extract_last_charclass
;
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
Other search_fixed: stri_count_fixed
;
stri_detect_fixed
;
stri_locate_all_fixed
,
stri_locate_all_fixed,
,
stri_locate_first_fixed
,
stri_locate_first_fixed,
,
stri_locate_last_fixed
,
stri_locate_last_fixed
;
stri_opts_collator
;
stri_replace_all_fixed
,
stri_replace_all_fixed
,
stri_replace_first_fixed
,
stri_replace_first_fixed
,
stri_replace_last_fixed
,
stri_replace_last_fixed
;
stri_split_fixed
,
stri_split_fixed
;
stringi-search-fixed
;
stringi-search
Other search_locate:
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_locate_all_fixed
,
stri_locate_all_fixed,
,
stri_locate_first_fixed
,
stri_locate_first_fixed,
,
stri_locate_last_fixed
,
stri_locate_last_fixed
;
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_locate_all
;
stri_locate_first
;
stri_locate_last
; stri_locate
;
stringi-search
1 2 3 4 5 6 | ## Not run:
stri_extract_all_fixed(c('AaaaaaaA', 'AAAA'), 'a')
stri_extract_first_fixed(c('Yy\u00FD', 'AAA'), 'y', stri_opts_collator(strength=2, locale="sk_SK"))
stri_extract_last_fixed(c('Yy\u00FD', 'AAA'), 'y', stri_opts_collator(strength=1, locale="sk_SK"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.