阅读背景:

将Ruby字符串转换为* nix与文件名兼容的字符串

来源:互联网 

In Ruby I have an arbitrary string, and I'd like to convert it to something that is a valid Unix/Linux filename. It doesn't matter what it looks like in its final form, as long as it is visually recognizable as the string it started as. Some possible examples:In Ruby I have an arbitrary string, and I'd lik




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: