Learn R Programming

postpack (version 0.5.4)

ins_regex_lock: 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)

Value

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

Arguments

params

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