🔍 An RStudio addin slash regex utility belt
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

24 lines
831B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/run_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}