ins_regex_bracket: Insert escapes on regex brackets

View source: R/utils.R

ins_regex_bracketR Documentation

Insert escapes on regex brackets

Description

Insert escapes on regex brackets

Usage

ins_regex_bracket(params)

Arguments

params

Node names.

Details

Searches the contents of a string for the occurrence of a square bracket or two, and inserts the necessary escapes for pattern 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.


bstaton1/codaTools documentation built on Jan. 1, 2023, 12:17 p.m.