Help learning regex filtering syntax: powerful tool

silverbytes

Member
May 31, 2006
15
0
151
May somebody help me learning how to write regex (regular expressions) to filter email in cpanel?

I couldn't find a good manual, tutorial or something about it.

I'd like to know how to filter using wildcards, words starting with..., variations, entire words only, conditions...
 

swdlh

Member
Jul 3, 2006
9
0
151
here is a great tester

http://www.regexlib.com/RETester.aspx

now if i could find a ref of what needs to be done to make them survive the trip thru cpanel ;-)


This regex ^[\*]{4,7}$ (detects 4 to 7 "*" in "spam-level:") gets messed up entering it into the cpanel email filter. also tried editing .filter, and backup/edit/restore the exim filter file.

I found a post (RE[##]) that has a regex that has escapes (\) all over the place, I need the rules (or workarounds) that cpanel requires. any help?

thanks -larry / dallas
 

swdlh

Member
Jul 3, 2006
9
0
151
swdlh said:
I need the rules (or workarounds) that cpanel requires. any help?

Never mind, cpanel and exim are not regex friendly, but I found workarounds. ;-)

-l