| check-vector-isMatching | R Documentation |
Does the string match a pattern?
isMatchingFixed(x, pattern)
isMatchingRegex(x, pattern)
isNotMatchingFixed(x, pattern)
isNotMatchingRegex(x, pattern)
allAreMatchingFixed(x, pattern)
allAreMatchingRegex(x, pattern)
allAreNotMatchingFixed(x, pattern)
allAreNotMatchingRegex(x, pattern)
allAreSystemCommands(x)
x |
Object. |
pattern |
|
logical.
isMatchingFixed(): Vectorized.
isMatchingRegex(): Vectorized.
isNotMatchingFixed(): Vectorized.
isNotMatchingRegex(): Vectorized.
allAreMatchingFixed(): Scalar.
allAreMatchingRegex(): Scalar.
allAreNotMatchingFixed(): Scalar.
allAreNotMatchingRegex(): Scalar.
allAreSystemCommands(): Scalar.
Updated 2022-12-14.
grepl().
stringi::stri_detect_regex().
stringi::stri_detect_fixed().
stringr::str_detect().
assertive.strings::is_matching_regex().
assertive.strings::is_matching_fixed().
assertive.strings::is_not_matching_regex().
assertive.strings::is_not_matching_fixed().
## TRUE ====
isMatchingRegex(x = "foobar", pattern = "^f")
isNotMatchingRegex(x = "foobar", pattern = "^b")
isMatchingFixed(x = "foobar", pattern = "bar")
isNotMatchingFixed(x = "foo", pattern = "bar")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.