Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 从字符串中删除字符_Linux_Xslt - Fatal编程技术网

Linux 从字符串中删除字符

Linux 从字符串中删除字符,linux,xslt,Linux,Xslt,我有一个变量$serviceName=“ZSMeter”。我必须从这个字符串中去掉“S”,得到“ZMeter”。我怎样才能解决它。提前谢谢。请原谅我的xsl。。。 但希望能有所帮助 如果使用XSLT 2.0,请替换($serviceName,“^ZMeter$”,“ZMeter”) translate($serviceName, 'S', '') translate($serviceName, 'S', '')

我有一个变量$serviceName=“ZSMeter”。我必须从这个字符串中去掉“S”,得到“ZMeter”。我怎样才能解决它。提前谢谢。

请原谅我的xsl。。。 但希望能有所帮助


如果使用XSLT 2.0,请替换($serviceName,“^ZMeter$”,“ZMeter”)

translate($serviceName, 'S', '')
translate($serviceName, 'S', '')