fork(1) download
  1. x <- c("ab", "abc", "abcc", "abccc", "abcccc", "abccccc")
  2. grep(pattern="(^|[^c])c{2,3}([^c]|$)", x, value=TRUE)
  3. grep(pattern="(?<!c)c{2,3}(?!c)", x, value=TRUE, perl=TRUE)
Success #stdin #stdout 0.15s 175424KB
stdin
Standard input is empty
stdout
[1] "abcc"  "abccc"
[1] "abcc"  "abccc"