Hello. preg_replace ("/(\p{P})/", ' ', $str)
removes apostrophes, and it should not. Please help
views:
549answers:
1
+3
A:
Try this:
/\p{P}(?<!')/
The additional look-behind assertion is to ensure that the punctuation character is not an apostrophe.
Gumbo
2009-07-16 10:10:11