After playing a little bit with Ruby 3 years ago, I am trying to learn
it now.
Problem:

a = ["aaa","abb","bbb","acc","bcc","ccc"]

I want a regular expression which would extract something like ["acc",
"ccc"] from a

I want something like 

irb(main):023:0> for b in a
irb(main):024:1> b.scan("#{(a||c)}cc") && print b
irb(main):025:1> end

but I am not sure how to approach it.

Regars.
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "But my God shall supply all your need according to his
      riches in glory by Christ Jesus."     Philippians 4:19