stri_match: Extract Regex Pattern Matches, Together with Capture Groups

Description Usage Arguments Value See Also

Description

A dummy function for compatibility with other search routines in stringi. Calls either stri_match_all, stri_match_first, or stri_match_last, depending on the argument used. Note that this is slower than the direct call.

Usage

1
stri_match(str, ..., regex, mode = c("first", "all", "last"))

Arguments

str

character vector of strings to search in

...

additional arguments passed to the underlying functions

regex

character vector of regular expressions to search for

mode

single string; whether to look for all, or only the first/last occurrence of the pattern

Value

same as the underlying functions called, i.e. a character matrix or a list of character matrices.

See Also

Other search_match: 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_match_all; stri_match_first; stri_match_last; stringi-search


stringi documentation built on May 2, 2019, 4:54 p.m.