dot-prep_pattern: Utiliy function to create Regex pattern.

Description Usage Arguments Value

Description

Utility function to collapse a character vector into a Regex pattern. The vector elements will be surrounded by word boundaries, and combined with logical ORs. The whole thing is wrapped in parantheses to catch it as a group.

Usage

1

Arguments

x

A character vector.

Value

The elements of x surrounded by Regex word boundaries, collapsed with logical ors, and surrounded by parantheses: (\\bx[1]\\b|\\bx[2]\\b|...).


thorepet/thoremisc documentation built on Oct. 8, 2021, 7:48 a.m.