云日志服务 LTS-字符集判断:str_isnumeric

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

str_isnumeric

判断字符串是否由数字组成。

  • 函数格式
    str_isnumeric(value)
  • 参数说明

    参数名称

    参数类型

    是否必填

    说明

    value

    任意(自动转为String)

    需要被检测的字符串。

  • 返回结果

    true/false。

  • 函数示例
    • 测试数据
      {
       "key": "123W"
      }
    • 加工规则
      e_set("str_isnumeric", str_isnumeric(v("key")))
    • 加工结果
      key: 123W 
      str_isnumeric: false
support.huaweicloud.com/usermanual-lts/lts_07_0170.html