Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 109
    This will also strip out non-English but otherwise perfectly alphanumeric characters like à, é, ö, as well as the entire Cyrillic alphabet. Commented Mar 1, 2012 at 13:40
  • 7
    @quemeful I disagree, the original question does not specify "for english only". SO is quite international, used all over the world. Anyone who speaks English and has internet access can use it. If the language is not specified in the question, then we should not be making any assumptions. We are in 2017, dammit! Commented Nov 8, 2017 at 21:47
  • 2
    Also, even if you only support English you have loan words like résumé and names of places or people so you wouldn't want to break someone's ability to say they work in San José (the official spelling) in the cubicle between Ramón Chloé. Commented Dec 14, 2017 at 18:38
  • 2
    This will mess with words such as wouldn't and don't Commented Feb 14, 2019 at 13:50
  • 2
    @njboot It collapses multiple adjacent whitespace to single spaces. Commented Mar 31, 2021 at 15:23