Back to Geneos FAQ

Internal documentation only

This page has been marked as draft.

How to validate regular expression syntax in FKM plugin

FKM plugin makes use of PCRE (Perl Compatible Regular Expression) by default since Netprobe version GA5.4 (COL-7588). It used POSIX as default in older Netprobe versions. While it may not matter in most cases, users may want to check out FKM plugin configuration documentation for the section: Regular Expressions.

If needed, users may update the option at FKM plugin’s Advanced tab for their desired syntax.

Geneos - how to validate regular expression syntax in FKM plugin

Linux Commands Copied

Geneos users often have access to Linux machines where the gateway component is installed. We have provided some examples of Linux commands for matching pattern ITRS Geneos with 4 digits.

Validation with perl command (for PCRE) Copied

[hlee@itrshkcent78 ~]$ echo 'ITRS Geneos 202x' | perl -pe 's/ITRS Geneos [0-9]{4}/matched/'
ITRS Geneos 202x
[hlee@itrshkcent78 ~]$ echo 'ITRS Geneos 2023' | perl -pe 's/ITRS Geneos [0-9]{4}/matched/'
matched

Validation with sed command (for POSIX) Copied

[hlee@itrshkcent78 ~]$ echo 'ITRS Geneos 202x' | sed -r 's/ITRS Geneos [0-9]{4}/matched/'
ITRS Geneos 202x
[hlee@itrshkcent78 ~]$ echo 'ITRS Geneos 2023' | sed -r 's/ITRS Geneos [0-9]{4}/matched/'
matched

Online Validation Copied

Regular expression is widely used by various programming languages and software. There are websites that provide syntax validation on the internet. Users may search for keywords regular expression checker or tester to locate relevant resources.

Further Information Copied

["Geneos"] ["Geneos > Netprobe"] ["FAQ"]

Was this topic helpful?