The title did not let me type "[:digit:]", but it does not make sense to me: grepl("[:digit:]", '1') [1] FALSE