What are the safe characters for making URLs?

I am making a website with articles, and I need the articles to have “friendly” URLs, based on the title. For example, if the title of my article is “Article Test”, I would like the URL to be http://www.example.com/articles/article_test. However, article titles (as any string) can contain multiple special characters that would not be possible … Read more

How does Stack Overflow generate its SEO-friendly URLs?

What is a good complete regular expression or some other process that would take the title: How do you change a title to be part of the URL like Stack Overflow? and turn it into how-do-you-change-a-title-to-be-part-of-the-url-like-stack-overflow that is used in the SEO-friendly URLs on Stack Overflow? The development environment I am using is Ruby on Rails, … Read more