Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在规则的前块中有没有办法将字符串转换为全部小写?
我有一个正则表达式,它返回字符串的一部分,有时它们以大写开头,有时不是。因为我想将正则表达式的结果用作哈希图中的键,所以我需要大小写始终保持一致。
是的!lc()是你的朋友。规则示例:
lc()
rule example { select when somedomain someevent pre { x = "FOO"; y = x.lc(); } noop(); }
文档链接:http ://docs.kynetx.com/docs/Lc