views:

44

answers:

1

Hi,

i need a function (c#) or regular expression that makes me a nice URL out of a string. (and replaces invalid characters)

Something like here on stackoverflow.. example:

Short URL or long URL for SEO -> short-url-or-long-url-for-seo

Thanks

+1  A: 

http://predicatet.blogspot.com/2009/04/improved-c-slug-generator-or-how-to.html

Robus
excellent, thanks
k0ni