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

时间:2024-05-23 10:48:52

str_lstrip

删除字符串开头指定的字符。

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

    参数名称

    参数类型

    是否必填

    说明

    value

    任意(自动转为String)

    需要被修改的原字符串。

    chars

    任意(自动转为String)

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

  • 返回结果

    修改后的字符串。

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