Skip to content
Prev 163422 / 398506 Next

Regex: workaround for variable length negative lookbehind

Gabor Grothendieck wrote:
or even

grep("^(?!(.)\\1+$).*(.)\\2+$", vec, perl = TRUE)


vQ