1) \bacer-euro\.com is listed.  Doesn't the - need to be escaped?  (if 
not,
why not?)

No need to escape the - here. It is required in a character class like 
[fth\-kl] - but not if the - is the last character in a character class 
like [a-z0-9-] see 
http://perldoc.perl.org/perlretut.html#Using-character-classes
It does not matter to escape the - everywhere in a regex. like 
\bacer\-euro\.com


>2) Should we use ^ to indicate beginning of line and $ to indicate end so
that something like:
Would ^Hosting Service$ work?

No - assp processes all regexes against the complete target string 
(header, body, mail), there is no line processing!

btw: \bHosting Service
matches both: "Bob's Hosting Service" and "Hosting Service Inc."

Thomas







Von:    K Post <nntp.p...@gmail.com>
An:     ASSP development mailing list <assp-test@lists.sourceforge.net>, 
Datum:  25.01.2014 18:16
Betreff:        [Assp-test] Senderbase White Org regex



I just downloaded 2.3.3 and am reviewing the whiteorg.txt sample file for
SenderBase.

I understand that that \b is necessary to indicate the word boundary.  I
get that the . needs to be escaped with \ so they don't match any 
character.

Questions:
1) \bacer-euro\.com is listed.  Doesn't the - need to be escaped?  (if 
not,
why not?)
2) Should we use ^ to indicate beginning of line and $ to indicate end so
that something like:
\bHosting Service      (to match any host in the "Hosting Service" network
doesn't match "Bob's Hosting Service" or "Hosting Service Inc."
Would ^Hosting Service$ work?

Thanks all!
ken
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk

_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to