Archive → September, 2011
[a-zA-Z0-9] and replace it with a hyphen
However, this starts looking ugly rather quickly if you’re from Germany or France for instance, where use of umlauts and accents is very common. Something really nice like
J'ai montré les éléphants à ma sœur
becomes something really ugly like
It’s still heavily based on what lehel built, so thank him, not me. I just wanted to put my improved version here, so I don’t forget it.
Update: I have created a Gist for this over at Github so we can continue to update it there…