Skip to content
Prev 163437 / 398506 Next

Regex: workaround for variable length negative lookbehind

Gabor Grothendieck wrote:
ha!  you can even make it a tiny little bit faster:

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

;)

vQ