This question already has an answer here:
I am trying to use preg_replace()
to remove a plus sign (+
) from my string. I used
$variation = preg_replace('/[^\p{L}\p{N}\s]/u', '', $variation);
But that removed periods (.
) too, which I need it in the string. Is there a way to just remove the plus sign?
</div>