Hacker News new | past | comments | ask | show | jobs | submit login

example please



Compressing multiple forms of non-unicode whitespace to single space. Used for cleaning text from input fields that often contains unwanted characters from copy/paste.

The regexp for this is simply \s+




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: