try_or_stop_print_pattern: try or stop print pattern

try_or_stop_print_patternR Documentation

try or stop print pattern

Description

Try to run a capture function. If it fails we wrap the error message with a more informative message that also includes the generated pattern.

Usage

try_or_stop_print_pattern(expr, 
    pat, engine)

Arguments

expr

expression to try.

pat

regex pattern string.

engine

string: regex engine.

Author(s)

Toby Dylan Hocking


nc documentation built on Sept. 1, 2023, 1:07 a.m.