On Thu, 22 Jun 2006, Ramprasad wrote:

> Is the Evilnumbers ruleset not too heavy
>
> But the numbers are also mangled
> eg
> 1-22-33 could be written in numerous ways just adding  spaces in between
> randomly
> I am doing regex match something like
> /1 *- *2 *2 *- *3 *3 */
>
> Any inputs ?

Yes, as SA collapses multiple spaces down to a single space (in 'body'
tests), you only need to look for a single instance of the space,
not an unlimited number. Also you can omit that final ' *' as it's
an optional "tail" match, thus the rule will work without it.

IE:
  /1 ?- ?2 ?2 ?- ?3/


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{

Reply via email to