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.

URL: http://nadeausoftware.com/articles/2007/9/php_tip_how_strip_punctuation_characters_web_page#Removinglineparagraphandwordseparators

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.