rm_regex_bracket: Remove escapes on regex brackets

View source: R/utils.R

rm_regex_bracketR Documentation

Remove escapes on regex brackets

Description

Remove escapes on regex brackets

Usage

rm_regex_bracket(params)

Arguments

params

Node names.

Details

Searches the contents of a string for the occurrence of a square bracket or two (that has been escaped), and removes the escaping that was necessary for matching via regular expressions.

Value

A character vector with all brackets escaped. For example, "a\\[1\\]" becomes "a[1]".

Note

This is not a function users will generally use directly.


postpack documentation built on Dec. 28, 2022, 1:23 a.m.