exact: Exact

Description Usage Arguments Details Note References

View source: R/exact.R

Description

ensure that pattern matches the entire pattern and not any substring

Usage

1

Arguments

pattern

string specifying a search pattern. Pattern modifiers can be used, such as exact

Details

Simply wraps a patterns between "^" and "$" ensuring that the regular expression matches the entire pattern.

Note

This is a poor substitute for being implemented within stringr. See https://github.com/hadley/stringr/issues/55

References

https://github.com/hadley/stringr/issues/55


decisionpatterns/conformist documentation built on Nov. 4, 2019, 10:23 a.m.