🔍 An RStudio addin slash regex utility belt
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

24 lines
827B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/regex.R
  3. \name{wrap_regex}
  4. \alias{wrap_regex}
  5. \title{Wraps capture groups in regex pattern in span tags to colorize with CSS}
  6. \usage{
  7. wrap_regex(pattern, escape = TRUE, exact = TRUE)
  8. }
  9. \arguments{
  10. \item{pattern}{Regex pattern to look for}
  11. \item{escape}{Escape HTML-related characters in \code{text}?}
  12. \item{exact}{Should the regex pattern be displayed as entered by the user
  13. into R console or source (default)? When \code{TRUE}, regex is displayed with
  14. the double \code{\\\\} required for escaping backslashes in R. When \code{FALSE},
  15. regex is displayed as interpreted by the regex engine (i.e. double \code{\\\\}
  16. as a single \code{\\}).}
  17. }
  18. \description{
  19. Wraps capture groups in regex pattern in span tags to colorize with CSS
  20. }
  21. \keyword{internal}