<?php $input = <<<'TEXT' 1. Qatar 2. Qatar 3 . Cathay 4. Qatar 2 . British 3. Qantas TEXT; $output = preg_replace('/(\d+)([.\s]*)/m','$1 . ',$input); echo $output;
You have javascript disabled. You will not be able to edit any code.