Like PHP strip punctuation, but I want to keep the apostrophe.
Example:
I'm a student, but I don't like the school. I'll quit school.
The string after strip should be:
I'm a student but I don't like the school I'll quit school
How can I do that with regular expression or other ways?
If you want to support all Unicode punctuation characters as well then use this regex:
This regex is matching Unicode punctuation character class
\pPand match will avoid apostrophe character using negative lookahead.