score:24

Accepted answer

It's just the negation of the contains filter predicate :

val rdd2 = rdd1.filter(x => !(x._1 contains "."))

Related Query

More Query from same tag