Layer7 Access Management

Expand all | Collapse all

Negative pattern matching in rules

Jump to Best Answer
  • 1.  Negative pattern matching in rules

    Posted 07-07-2016 11:59 AM

    Hi

    we want to set up a global policy which applies when a resource does not match a certain pattern... We have tried the following regexp in the global rule: /pattern/(?!exclude).*

     

    we expected it to match everything which is not /pattern/exclude.* , but it doesn't seem to work

    Any suggestion?



  • 2.  Re: Negative pattern matching in rules
    Best Answer

    Posted 07-10-2016 12:12 AM

    Enrico

     

    Have we tried Regular Expression first in a Standard Rule within a Policy Domain. If this works then move that to a Global Rule.

     

    Also I don't think we support exclamation , it is only asterisks (*) and question-mark (?). Please refer the documentation.

     

    Resource Matching and Regular Expressions - CA Single Sign-On - 12.52 SP2 - CA Technologies Documentation

     

    Let me know your thoughts.

     

     

    Regards

    Hubert