I am trying to get an understanding of how the SA rules work. Never been
too good at regex but trying to get better. Just had a false positive in
which a member of staff reporting her mobile phone theft got her email
filtered. The rule that mostly did for her was

body CELL_PHONE_BOOST          
/\b(?:(?:boost|antenna|reception).{0,16}(?:cell|mobile|phone|cord.?less)|(?:cell|mobile|phone|cord.?less).{0,16}(?:boost|antenna|reception))/i
describe CELL_PHONE_BOOST       Talks about cell-phone signal
improvement

Could somebody point me at an explanation of how these regex's work. 
Not sure of the role of '?'. I get the or '|'  also not sure how the
{0,16} works. Any pointers to what I should be reading to get a better
understanding of this would be much appreciated.

Ron

-- 
Ron McKeating
Senior IT Services Specialist
Internet Services and Software Solutions
Loughborough University
01509 222329

Reply via email to