<?php $re = '~(?:<p>(?=[^<>]*</p>)|\G(?!^))[^\d<>]*\d+\K\h~'; $str = '<p>My 90 days 123 work.</p>'; echo preg_replace($re, " ", $str);
You have javascript disabled. You will not be able to edit any code.