stri_match

0th

Percentile

Extract Regex Pattern Matches, Together with Capture Groups

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
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_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

Aliases
  • stri_match
Documentation reproduced from package stringi, version 0.2-5, License: file LICENSE

Community examples

Looks like there are no examples yet.