The ossec-regex program is used to validate a regex expression.
The pattern should be enclosed in single quotes to help prevent any unintended interactions with the shell.
The syntax for ossec-regex is as follows:
It then reads strings from stdin and outputs matches to stdout.
+OS_Regex are displayed if a match is successful.