Help topics

Match

Regular Expression Related Functions

  • re2_detect
    Test a pattern in strings, and return boolean.
  • re2_extract(re2_extract_all)
    Extract matching patterns from a string.
  • re2_locate(re2_locate_all)
    Locate the position of patterns in a string.
  • re2_match(re2_match_all)
    Find matched groups from strings.
  • re2_replace(re2_replace_all)
    Replace matched patterns in a string.
  • re2_split(re2_split_fixed)
    Split up a string into pieces.
  • re2_subset
    Keep strings matching a pattern.

Compile RE2 Regular Expression

RE2 Object

Utilities

Helper Functions

  • show_regex
    Show regex pattern in a htmlwidget
  • quote_meta
    Escapes all potentially meaningful regexp characters in 'unquoted'.
  • sub_string(sub_string<-)
    Extract and replace substrings from a character vector.

Other

Dependencies

  • Imports: Rcpp, stringi, RcppParallel, htmlwidgets
  • Suggests: knitr, testthat, rmarkdown, microbenchmark

Authors

  • Qin Wenfeng [aut, cre]
  • Toby Dylan Hocking [ctb]
  • Marek Gagolewski [ctb]
  • RE2 developers [ctb]
  • Jeffrey Avallone [ctb]