<?php $str = "1111 2222 3333 4444 5555 6666"; if (preg_match_all('~(?:\G(?!^)\s?|\A(?=(?:\d{4}\s?)+\z))(\d{4})~', $str, $m)) { print_r($m[1]); }
You have javascript disabled. You will not be able to edit any code.