Hello,
I am having trouble with regex preprocessing only matching one time and then stops matching. Seems like zabbix is not using /g modifer for regex
How to solve this issue.
Zabbix version: 5.0
Below example is what I mean
Let say we have regex: (?=.*[0-9])(.*)(?<=is)
We are matching against:
This matches everything until "is" on each line. Here is regex101 link also: https://regex101.com/r/NicKyj/1
So group 1 should be all those matches.
But in zabbix when I test in preprocessing it will only match the first line. See the image:

Is it possible in zabbix to return results from each line in this case in preprocessing ?
Best regards,
Raimond
I am having trouble with regex preprocessing only matching one time and then stops matching. Seems like zabbix is not using /g modifer for regex
How to solve this issue.
Zabbix version: 5.0
Below example is what I mean
Let say we have regex: (?=.*[0-9])(.*)(?<=is)
We are matching against:
1 one line is here
2 second line is here
3 third line is here
4 fourth line is here
5 so on is here
6 possibly is more here
2 second line is here
3 third line is here
4 fourth line is here
5 so on is here
6 possibly is more here
So group 1 should be all those matches.
But in zabbix when I test in preprocessing it will only match the first line. See the image:
Is it possible in zabbix to return results from each line in this case in preprocessing ?
Best regards,
Raimond
Comment