re_ansi: Create a regular expression that matches ANSI tags

Description Usage Value

View source: R/regex.R

Description

It uses groups to distinguish between start and end tags, and it also keeps the actual command string within the ANSI tag. E.g. "1" means a bold start tag.

Usage

1
re_ansi(groups = FALSE)

Value

A character scalar, the regular expression.


r-lib/ansistrings documentation built on March 7, 2020, 10:13 p.m.