Forum Discussion

akroehnert's avatar
akroehnert
Icon for Nimbostratus rankNimbostratus
Feb 24, 2015

ASM parameter allow but for one particular value

Maybe I dont see the woods for the trees. What I want to do is to have ASM look for a parameter and only if it has a particular value the policy shall block.

 

Therefore I thought I could apply a RegEx to the parameters data type: ^(.(?!blockthisvalue))*$

 

However I dont get ASM to block that. Am I just doing it wrong? What would be the best way to achieve my requirement?

 

Regards Andreas

 

1 Reply

  • after some troubleshooting I had the facepalm event. A little dot was causing the problem. Setting the RegEx for the data type to ^((?!blockthisvalue))*$ (without the dot after the first bracket) works like a charm.