Start with 'p'
langs = %w[ java perl python ruby ] langs.grep(/^p/) # => [perl, python]: start with 'p' langs.grep(/^p/) {|x| x.capitalize} # => [Perl, Python]: fix caps