【发布时间】:2011-10-14 22:00:51
【问题描述】:
我想像这样转换一个字符串:
Testing this on-the-test-forum (please/remove) if possible. test: test, "abc"
到这样的字符串:
testing-this-on-the-test-forum-please-remove-if-possible-test-test-abc
有没有人对我可以使用的最简单类型的函数有任何想法。我正在寻找的是非常简单的东西,因为我需要稍后在 LINQ 中使用这个函数。
【问题讨论】:
-
这称为slug。
-
这开始看起来比我预期的要复杂得多:-(
-
@Marife 只需从副本中获取代码就可以了
标签: c#