ins_regex_lock {postpack}R Documentation

Insert the symbols to lock in a string for matching

Description

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

Usage

ins_regex_lock(params)

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.


[Package postpack version 0.5.4 Index]