I am confused on below result on pattern match using grepl() function -
grepl("[0-9]{2}-[0-9]{2}-[0-9]{2}", "2010-04-09") # TRUE
grepl("[0-9]{4}-[0-9]{2}-[0-9]{2}", "2010-04-09") #TRUE
Shouldn't I expect the first result to be FALSE?
Any pointer will be highly appreciated.