quote_meta: Escapes all potentially meaningful regexp characters in...

Description Usage Arguments Value Examples

Description

The returned string, used as a regular expression, will exactly match the original string.

Usage

1
quote_meta(unquoted, parallel = FALSE, grain_size = 1e+05)

Arguments

unquoted

unquoted string

parallel

multithreading support

grain_size

a minimum chunk size for tuning the behavior of parallel algorithms.

Value

quoted string

Examples

1
2
3
4
quote_meta(c("1.2","abc"))
re2_detect("1+2", "1+2")
re2_detect("1+2", quote_meta("1+2"))
re2_detect("1+2", re2("1+2",literal = TRUE))

re2r documentation built on May 2, 2019, 12:35 p.m.