标签: xml xslt xpath xslt-2.0
如果我有一个字符串= "Hello, my friend!,,,,",我想从右边删除所有逗号
"Hello, my friend!,,,,"
所以结果将是"Hello, my friend!"
"Hello, my friend!"
怎么做?
答案 0 :(得分:3)
replace('Hello, my friend!,,,,',',+$','')