The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to set the filters

Discussion in 'General Discussion' started by animesh, Mar 29, 2008.

  1. animesh

    animesh Registered

    Joined:
    Feb 8, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi All,

    I am trying to set up a filter via Cpanel->Account Level Filtering. I have used
    the \'matches regex\' option successfully, but when I try the \'does not
    match\' option it appears to be accepted but does not work. When I go back and
    look at the rule the test has changed to \'equals\'. How can I set up a rule
    where \'does not match\' will work?

    Regards
    Animesh
     
  2. tonymarston

    tonymarston Registered

    Joined:
    Mar 31, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have hit exactly the same problem, and I am finding it very frustrating. I have used the "matches regex" option successfully, but I really want the equivalent of "does not match regex". There is a long standing problem with compound negative conditions, but it can be solved with a little ingenuity:

    For a positive condtion:
    Code:
        if (pattern matches)
            perform action
        endif
    For a negative condition:
    Code:
        if (pattern matches)
            continue
        else
            perform action
        endif
     
Loading...

Share This Page