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.

regex help for e-mail filter

Discussion in 'E-mail Discussions' started by rpiggott, May 22, 2010.

  1. rpiggott

    rpiggott Registered

    Joined:
    Oct 30, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Most of the spam I receive now contains 4 or more . and 2 or more ,

    I need help writing a regex that stipulates 4 or more . throughout the entire string --- In other words I want to defeat the spam by looking for excessive punctuation.

    Then I need a second regex for 2 or more , throughout the entire string

    Within cpanel e-mail filter I am able to use the AND operator to add a second condition (IE ,)

    Thank you.

    Ron
     
  2. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    Could you clarify please?

    4 or more consecutive periods and/or 2 or more consecutive commas

    or

    4 or more periods and/or 2 or more commas anywhere in the text?

    The latter would probably have a very large number of false positives.
     
Loading...

Share This Page