re_match_i() — rsyslog 8.2412.0 documentation

# re_match_i()

## Purpose

re_match_i(expr, re)

Returns 1, if expr matches re, 0 otherwise. Uses POSIX ERE. In contrast to re_match() the matching is case-insensitive.

Note

Functions using regular expressions tend to be slow and other options may be faster.

## Example

In the following example it is checked if the msg object matches the regex string.

    re_match($msg,'TesT')

It matches it the message “Test”, in any case (“TEST”, “tEst”, …) is contained in msg property.

See also

Help with configuring/using `Rsyslog`:

- Mailing list - best route for general questions

- GitHub: rsyslog source project - detailed questions, reporting issues that are believed to be bugs with `Rsyslog`

See also

Contributing to `Rsyslog`:

- Source project: rsyslog project README.

- Documentation: rsyslog-doc project README

Copyright 2008-2023 Rainer Gerhards (Großrinderfeld), and Others.