Zabbix Documentation 3.2

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:config:macros:macro_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:config:macros:macro_functions [2017/12/14 11:22]
martins-v a \0 escape sequence is replaced with the matched text
manual:config:macros:macro_functions [2017/12/19 13:07] (current)
martins-v linking to known issues
Line 26: Line 26:
 ^ ^  **Description** ​ ^  **Parameters** ​ ^  **Supported for**  ^^ ^ ^  **Description** ​ ^  **Parameters** ​ ^  **Supported for**  ^^
 |**regsub** (<​pattern>,<​output>​) ​ ^^^^^ |**regsub** (<​pattern>,<​output>​) ​ ^^^^^
-^ |Substring extraction by a regular expression match (case sensitive). ​ |**pattern** - the regular expression to match\\ **output** - the output options. **\1 - \9** placeholders are supported to capture groups. **\0** returns the matched text.\\ \\ If ''​pattern''​ is not a correct regular expression '​UNKNOWN'​ is returned. ​  ​|{ITEM.VALUE}\\ {ITEM.LASTVALUE} ​ ||+^ |Substring extraction by a regular expression match (case sensitive). ​ |**pattern** - the regular expression to match\\ **output** - the output options. **\1 - \9** placeholders are supported to capture groups. **\0** returns the matched text (see [[:​manual/​installation/​known_issues#​macro_functions|known issues]]).\\ \\ If ''​pattern''​ is not a correct regular expression '​UNKNOWN'​ is returned. ​  ​|{ITEM.VALUE}\\ {ITEM.LASTVALUE} ​ ||
 ^ ||||| ^ |||||
 |**iregsub** (<​pattern>,<​output>​) ​ ^^^^^ |**iregsub** (<​pattern>,<​output>​) ​ ^^^^^
-^ |Substring extraction by a regular expression match (case insensitive). ​ |**pattern** - the regular expression to match\\ **output** - the output options. **\1 - \9** placeholders are supported to capture groups. **\0** returns the matched text.\\ \\ If ''​pattern''​ is not a correct regular expression '​UNKNOWN'​ is returned. ​ |{ITEM.VALUE}\\ {ITEM.LASTVALUE} ​ ||+^ |Substring extraction by a regular expression match (case insensitive). ​ |**pattern** - the regular expression to match\\ **output** - the output options. **\1 - \9** placeholders are supported to capture groups. **\0** returns the matched text (see [[:​manual/​installation/​known_issues#​macro_functions|known issues]]).\\ \\ If ''​pattern''​ is not a correct regular expression '​UNKNOWN'​ is returned. ​ |{ITEM.VALUE}\\ {ITEM.LASTVALUE} ​ ||
 ^ ||||| ^ |||||