preg_replace ("/(\p{P})/", ' ', $str)removes apostrophes, and it should not. Please, help
preg_replace ("/(\p{P})/", ' ', $str)
Try the following:
/\p{P}(?<!')/
An additional external statement is that the punctuation character is not an apostrophe.
Source: https://habr.com/ru/post/1712758/More articles:Is there a way to determine the version of Java without looking at shell output? - javaDjango: Why don't external searches automatically use pk? - djangosun.font.TrueTypeFont Memory Leak? - javaexe for maintenance - exeHow to display jQuery dialog at the top of YouTube Video / SlideShare PPT? - jquery-uiInstall debug version of Qt on Mac OSX - qtLinux kernel package tutorial - linux-kernelSetting apache error log file name to include current date - loggingUnpacking rar on iPhone - fileEclipse as a cross-platform IDE for C ++ code on Linux and Windows - c ++All Articles