<?php $input = 'test <span>1234</span><span>12345</span>test<span>5678</span><span>12345</span>test'; preg_match("/(<span>\d{4}<\/span>)/", $input, $output); print_r($output);
You have javascript disabled. You will not be able to edit any code.