阅读背景:

正则表达式删除最后一个/如果它作为字符串中的最后一个字符存在

来源:互联网 

I would like a regular expression or otherwise some method to remove the last character in a string if and only if that character is '/'. How can I do it?I would like a regular expression or otherwise




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

分享到: