On Fri, 08 Apr 2016 14:19:45 +0100 Martin Gregorie wrote: > On 2016-04-08 14:02, Robert Boyl wrote: > > > > describe TEST123 test > > body TEST123 /\bNeed to buy products *\?\b/i > > score TEST123 0.0 > > > > If possible, also make it catch if more than 1 question mark :) > > use \ in front of space char > > > Try this: > > describe TEST123 test > body TEST123 /Need to buy products\s*\?+/i > score TEST123 0.0 > > \s* matches zero or more whitespace (spaces and TABs)
There are no tabs and no consecutive spaces. In the body there is no difference between " ?", " *", \s* and \s? His rule failed solely because he scored it at zero.