| miniUI, | miniUI, | ||||
| jsonlite, | jsonlite, | ||||
| rematch2 | rematch2 | ||||
| RoxygenNote: 6.0.1 | |||||
| RoxygenNote: 6.1.0 | |||||
| Roxygen: list(markdown = TRUE) | Roxygen: list(markdown = TRUE) | ||||
| URL: https://github.com/gadenbuie/regexplain | URL: https://github.com/gadenbuie/regexplain | ||||
| BugReports: https://github.com/gadenbuie/regexplain/issues | BugReports: https://github.com/gadenbuie/regexplain/issues |
| ## regexplain 0.2.x | ## regexplain 0.2.x | ||||
| ### 0.2.3 | |||||
| * Use of `knitr` is automatically detected when calling `view_regex()` inside | |||||
| an R Markdown document. The `knitr` parameter of `view_regex()` has been | |||||
| removed. Added `result_only` parameter for interactive viewing. As a side | |||||
| effect, the group coloring CSS is automatically embedded in the HTML output. | |||||
| ### 0.2.2 | ### 0.2.2 | ||||
| * Fix issues with coloring of groups in regexplain gadget when matched groups | * Fix issues with coloring of groups in regexplain gadget when matched groups |
| \alias{regexplain-package} | \alias{regexplain-package} | ||||
| \title{regexplain: Rstudio Addin to Explain, Test and Build Regular Expressions} | \title{regexplain: Rstudio Addin to Explain, Test and Build Regular Expressions} | ||||
| \description{ | \description{ | ||||
| A set of RStudio Addins to help interactively test and build | |||||
| regular expressions. Provides a Shiny gadget interface for interactively | |||||
| constructing the regular expression and viewing the results from common | |||||
| string-searching functions. The gadget interface includes a helpful | |||||
| regex syntax reference sheet and a library of common patterns. | |||||
| A set of RStudio Addins to help interactively test and build | |||||
| regular expressions. Provides a Shiny gadget interface for interactively | |||||
| constructing the regular expression and viewing the results from common | |||||
| string-searching functions. The gadget interface includes a helpful | |||||
| regex syntax reference sheet and a library of common patterns. | |||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Useful links: | Useful links: |
| \alias{run_regex} | \alias{run_regex} | ||||
| \title{Extract matched groups from regexp} | \title{Extract matched groups from regexp} | ||||
| \usage{ | \usage{ | ||||
| run_regex(text, pattern, ignore.case = FALSE, perl = FALSE, fixed = FALSE, | |||||
| useBytes = FALSE) | |||||
| run_regex(text, pattern, ignore.case = FALSE, perl = FALSE, | |||||
| fixed = FALSE, useBytes = FALSE) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text}{Text to search} | \item{text}{Text to search} |
| \alias{textAreaInputAlt} | \alias{textAreaInputAlt} | ||||
| \title{Modified Text Area Input} | \title{Modified Text Area Input} | ||||
| \usage{ | \usage{ | ||||
| textAreaInputAlt(inputId, label, value = "", width = NULL, height = NULL, | |||||
| cols = NULL, rows = NULL, placeholder = NULL, resize = NULL, | |||||
| is_code = TRUE) | |||||
| textAreaInputAlt(inputId, label, value = "", width = NULL, | |||||
| height = NULL, cols = NULL, rows = NULL, placeholder = NULL, | |||||
| resize = NULL, is_code = TRUE) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{inputId}{The \code{input} slot that will be used to access the value.} | \item{inputId}{The \code{input} slot that will be used to access the value.} | ||||
| \seealso{ | \seealso{ | ||||
| Other modified shiny inputs: \code{\link{textInputCode}} | Other modified shiny inputs: \code{\link{textInputCode}} | ||||
| } | } | ||||
| \concept{modified shiny inputs} |
| \seealso{ | \seealso{ | ||||
| Other modified shiny inputs: \code{\link{textAreaInputAlt}} | Other modified shiny inputs: \code{\link{textAreaInputAlt}} | ||||
| } | } | ||||
| \concept{modified shiny inputs} |
| \title{View grouped regex results} | \title{View grouped regex results} | ||||
| \usage{ | \usage{ | ||||
| view_regex(text, pattern, ..., render = TRUE, escape = render, | view_regex(text, pattern, ..., render = TRUE, escape = render, | ||||
| knitr = FALSE, exact = escape) | |||||
| exact = escape, result_only = FALSE) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text}{Text to search} | \item{text}{Text to search} | ||||
| \item{escape}{Escape HTML-related characters in \code{text}?} | \item{escape}{Escape HTML-related characters in \code{text}?} | ||||
| \item{knitr}{Print into knitr doc? If \code{TRUE}, marks text as \code{asis_output} and | |||||
| sets \code{render = FALSE} and \code{escape = TRUE}.} | |||||
| \item{exact}{Should the regex pattern be displayed as entered by the user | \item{exact}{Should the regex pattern be displayed as entered by the user | ||||
| into R console or source (default)? When \code{TRUE}, regex is displayed with | into R console or source (default)? When \code{TRUE}, regex is displayed with | ||||
| the double \code{\\\\} required for escaping backslashes in R. When \code{FALSE}, | the double \code{\\\\} required for escaping backslashes in R. When \code{FALSE}, | ||||
| regex is displayed as interpreted by the regex engine (i.e. double \code{\\\\} | regex is displayed as interpreted by the regex engine (i.e. double \code{\\\\} | ||||
| as a single \code{\\}).} | as a single \code{\\}).} | ||||
| \item{result_only}{Should only the result be displayed? If \code{FALSE}, then | |||||
| the colorized regular expression is also displayed in the output.} | |||||
| } | } | ||||
| \description{ | \description{ | ||||
| View the result of the regular expression when applied to the given text. | View the result of the regular expression when applied to the given text. |