make_regex: Convert to regex

Description Usage Arguments Details Value

View source: R/make_regex.R

Description

make_regex escapes special regex characters in a string. The function addresses the grouping characters (parentheses, brackets, and hyphens), matching for the beginning and end of a string ("^" and "$"), regex for number of repetitions, as well as the dot "." character.

Usage

1

Arguments

s

The string to convert to regex

Details

The function assumes that the string passed to the function needs to found as-is. That is, the string is not indicative of any regex pattern matching.

Value

A string with special characters escaped


awqx/qsarr documentation built on Oct. 2, 2021, 7:05 a.m.