<?php $str = 'foo: 2008bar: 2009'; var_export( preg_match_all( '~\G(\w+): (\d+)~', $str, $out ) ? $out : 'no matches' );
You have javascript disabled. You will not be able to edit any code.