When there is more than one argument, take the intersection.
# Arguments that begin with ^ are negated.
"hello".count('a-z', '^aeiou') # => 3: count lowercase consonants
"hello".delete('a-z', '^aeiou') # => "eo: delete lowercase consonants
Related examples in the same category