我正在使用grafana获取zabbix代理数据。
我只需匹配以下值之一:
Free space on C: (Percentage)
Free Space on / (Percentage)
该表达式不允许与第二个表达式匹配:
/^(Free space on C: (Percentage)|Free Space on \/ (Percentage))$/
即使在在线正则表达式文本中也不匹配。
我很确定问题出在字符/上。
最佳答案
关于regex - 正则表达式: how to deal with character/,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50001024/