deebug

SEO slug

Jan 29th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.10 KB | None | 0 0
  1. s = Regex.Replace(s, "[^a-z0-9_\-]+", "-", RegexOptions.IgnoreCase);
  2. s = s.Trim(new char[] { "-" });
Advertisement
Add Comment
Please, Sign In to add comment