ospatrol-regex

``ospatrol-regex` is a simple program that will validate a regex expression.a The pattern should be enclosed in single quotes to help prevent any strange interactions with the shell.

The syntax for ospatrol-regex is simple: /var/ospatrol/bin/ospatrol-regex '<pattern>' It then reads strings from stdin and outputs matches to stdout. +OSRegex_Execute and +OS_Regex are printed if a match is successful.

Example 1: A siple digit match:

# /var/ospatrol/bin/ospatrol-regex '^\d\d\d'
333
+OSRegex_Execute: 333
+OS_Regex       : 333
f44
222
+OSRegex_Execute: 222
+OS_Regex       : 222