<?php $text = preg_replace('/\s+(?=(\d\s*){0,3}$)/', '', '12895 6 7 8 9'); echo "$text\n"; $text = preg_replace('/\s+(?=(\d\s*){0,3}$)/', '', '2546734 34 55'); echo "$text\n"; $text = preg_replace('/\s+(?=(\d\s*){0,3}$)/', '', '2334734556 341 5'); echo "$text\n"; $text = preg_replace('/\s+(?=(\d\s*){0,3}$)/', '', '23347345563 4 1 5'); echo "$text\n";
You have javascript disabled. You will not be able to edit any code.