🔍 An RStudio addin slash regex utility belt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
949B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/regex.R
  3. \name{regex}
  4. \alias{regex}
  5. \title{Extract matched groups from regexp}
  6. \usage{
  7. regex(
  8. text,
  9. pattern,
  10. ignore.case = FALSE,
  11. perl = FALSE,
  12. fixed = FALSE,
  13. useBytes = FALSE,
  14. global = TRUE
  15. )
  16. }
  17. \arguments{
  18. \item{text}{Text to search}
  19. \item{pattern}{regexp}
  20. \item{ignore.case}{if \code{FALSE}, the pattern matching is \emph{case
  21. sensitive} and if \code{TRUE}, case is ignored during matching.}
  22. \item{perl}{logical. Should Perl-compatible regexps be used?}
  23. \item{fixed}{logical. If \code{TRUE}, \code{pattern} is a string to be
  24. matched as is. Overrides all conflicting arguments.}
  25. \item{useBytes}{logical. If \code{TRUE} the matching is done
  26. byte-by-byte rather than character-by-character. See
  27. \sQuote{Details}.}
  28. \item{global}{If \code{TRUE}, enables global pattern matching}
  29. }
  30. \description{
  31. Extract matched groups from regexp
  32. }