像PHP strip punctuation一样,但我想保留撇号。例子:
I'm a student, but I don't like the school. I'll quit school.
strip 之后的字符串应该是:
I'm a student but I don't like the school I'll quit school
我怎样才能用正则表达式或其他方式做到这一点?
像PHP strip punctuation一样,但我想保留撇号。例子:
I'm a student, but I don't like the school. I'll quit school.
strip 之后的字符串应该是:
I'm a student but I don't like the school I'll quit school
我怎样才能用正则表达式或其他方式做到这一点?