Php – Replacing space after number with hard space in p tag
I would like to replace a space after a number with hard-space " " only in p tags. I wrote this code: $pattern = "/<p>[0-9] </p>/"; return preg_replace($pattern, "$1 ", $text); But it does nothing, why? Can you please help? Example: Input…