GE interview question

Regular expression programming using either perl/php