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

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.