Strip punctuation from text.

/ Published in: PHP
Save to your folder(s)

When processing text for a search engine or analysis tool, code needs to strip out punctuation, formatting, spacing, and control characters to reveal indexable text. In international text there are hundreds of these characters, and some should be removed in one context, but not in another. This tip shows how.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.