Synopsys interview question

Perl programming, match regular expressions