match_pattern: Pattern matching

Description Usage Arguments Value Examples

View source: R/match_pattern.R

Description

Pattern matching

Usage

1

Arguments

x

Atomic character vector

pattern

regular expression passed to stringr::str_detect()

Value

Either a message if all elements match, or a character vector of mismatches

Examples

1
2
match_pattern(example_paths$last_dir, "ID_[0-9]{5}")
match_pattern(example_paths$file, "^[0-9]{5}")

JasonDude16/FileCheckR documentation built on Feb. 18, 2022, 1:29 a.m.