云日志服务 LTS-常见操作:str_rstrip

时间:2024-07-25 10:14:29

str_rstrip

删除字符串结尾指定的字符。

  • 函数格式
    str_rstrip(value, chars)
  • 参数说明

    参数名称

    参数类型

    是否必填

    说明

    value

    任意(自动转为String)

    需要被修改的原字符串。

    chars

    任意(自动转为String)

    字符串结尾需要删除的字符集,默认为空格。

  • 返回结果

    修改后的字符串。

  • 函数示例
    • 测试数据:无
    • 加工规则
      e_set("str_strip", str_rstrip("**123**", "*"))
    • 加工结果
      str_strip: 123**
support.huaweicloud.com/usermanual-lts/lts_07_0168.html