ins_regex_lock: Insert the symbols to lock in a string for matching

Description Usage Arguments Value Note

View source: R/utils.R

Description

To ensure that a regular expression will match exactly, it's necessary to specify so.

Usage

1

Arguments

params

Node names to paste a ^ and $ (if not already present) to lock in the match.

Value

A character vector with locking anchors inserted to force an exact match. For example, "a\\[1\\]" becomes "^a\\[1\\]$".

Note

This is not a function users will generally use directly.


postpack documentation built on June 3, 2021, 1:07 a.m.