I am in the process of matching patterns for OM policy testing purposes. I've done pretty well but am stuck on a few...
Does anyone have a clue on what would match these three patterns below? All are for UNIX.
The pattern matching utility opcpat reports these two patterns contains syntax errors but they are present in policies.
\> <@.user> <#.pid> b
<*> \> <*.text> (<*.tmplid>)
This one is probably easy but I haven’t yet been able to figure out a match yet that opcpat agrees with.
Thanks in advance...
it depends on the definition of the Separator.
Let's assume it is an X.
I added additional escape characters (\) for 'loose' \ and >.
#\\\> <@.user> <#.pid> bX<*> \\\> <*.text> (<*.tmplid>)X^<@><S><@><S><@><S>0<@><S><@.obj><S><*.msg>X
> User 999 bSome Text > Some more Test (TemplId)aapXnootXmiesX0someXTheObjectXThe message text
You can check the valuefile against the condition using the admin GUI.
Conditions in the admin gui show:
<*> \> <*.text> (<*.TmplId>)
\> User 999 b
These pattern matches are shown as follows when you download the logfile template to a file::
TEXT "<*> \\> <*.text> (<*.TmplId>)" SEPARATORS "X" TEXT "\\> User 999 b"
So I have too many backslashes in the patfile Only the \ needs an additional \..