- print_r: documentation ( source)
- preg_grep: documentation ( source)
<?php
$haystack = array (
'01.02',
'01.03',
'02.05',
'02.07'
);
$matches = preg_grep ('/cpb-grid-col-[0-9]/', $haystack);
print_r ($matches);