escape_regex: Escape a string for regex

View source: R/webexercises_fns.R

escape_regexR Documentation

Escape a string for regex

Description

Escape a string for regex

Usage

escape_regex(string)

Arguments

string

A string to escape.

Value

A string with escaped characters.

Examples

escape_regex("library(tidyverse)")

webexercises documentation built on May 31, 2023, 8:16 p.m.