Skip to contents

Does a string end with one or two dots (".", "..")?

Usage

isDotOrDoubleDot(x)

Arguments

x

vector of character

Value

vector of logical

Examples


isDotOrDoubleDot(c("a", "b.", "c..", "d", "efg..h"))
#> [1] FALSE  TRUE  TRUE FALSE FALSE