On Fri, 8 Apr 2016, Bowie Bailey wrote:
On 4/8/2016 11:09 AM, Reindl Harald wrote:
Am 08.04.2016 um 17:05 schrieb John Hardin:
> On Fri, 8 Apr 2016, Reindl Harald wrote:
>
> > /.*need to buy products.*\?.*/i
> >
> > .* = any chars independent how often
>
> Do NOT use ".*" in body or r
On 4/8/2016 11:09 AM, Reindl Harald wrote:
Am 08.04.2016 um 17:05 schrieb John Hardin:
On Fri, 8 Apr 2016, Reindl Harald wrote:
/.*need to buy products.*\?.*/i
.* = any chars independent how often
Do NOT use ".*" in body or rawbody rules. That can lead to unbounded
processing times. Use a
On Fri, 8 Apr 2016, Reindl Harald wrote:
Am 08.04.2016 um 17:05 schrieb John Hardin:
On Fri, 8 Apr 2016, Reindl Harald wrote:
> /.*need to buy products.*\?.*/i
>
> .* = any chars independent how often
Do NOT use ".*" in body or rawbody rules. That can lead to unbounded
processing times
Am 08.04.2016 um 17:05 schrieb John Hardin:
On Fri, 8 Apr 2016, Reindl Harald wrote:
/.*need to buy products.*\?.*/i
.* = any chars independent how often
Do NOT use ".*" in body or rawbody rules. That can lead to unbounded
processing times. Use a sane upper limit, e.g. ".{,20}", and try to
On Fri, 8 Apr 2016, Reindl Harald wrote:
/.*need to buy products.*\?.*/i
.* = any chars independent how often
Do NOT use ".*" in body or rawbody rules. That can lead to unbounded
processing times. Use a sane upper limit, e.g. ".{,20}", and try to avoid
repeated "." where possible.
--
Joh
On Fri, 08 Apr 2016 14:43:07 +0100
Martin Gregorie wrote:
> On Fri, 2016-04-08 at 14:28 +0100, RW wrote:
>
> > His rule failed solely because he scored it at zero.
> >
> Since the OP claimed to be relatively clueless about regexes, I posted
> what I did in the hope of showing him a easy way to
On Fri, 2016-04-08 at 14:28 +0100, RW wrote:
> His rule failed solely because he scored it at zero.
>
Since the OP claimed to be relatively clueless about regexes, I posted
what I did in the hope of showing him a easy way to write and test
them.
Regex simplification by writing body rules to take
On Fri, 08 Apr 2016 14:19:45 +0100
Martin Gregorie wrote:
> On 2016-04-08 14:02, Robert Boyl wrote:
> >
> > describe TEST123test
> > body TEST123/\bNeed to buy products *\?\b/i
> > scoreTEST123 0.0
> >
> > If possible, also make it catch if more than 1 question mark :)
> > us
On 2016-04-08 14:02, Robert Boyl wrote:
>
> describe TEST123test
> body TEST123/\bNeed to buy products *\?\b/i
> scoreTEST123 0.0
>
> If possible, also make it catch if more than 1 question mark :)
> use \ in front of space char
>
Try this:
describe TEST123test
body
Hi dude,
Try the following -
need to buy (a\s)?products?([\s?]{0,})?
added a conditional a with a space "(a\s)?"
added a conditional s after product s?
added a conditional combination of space and question marks ([\s?]{0,})?
Hope it helps
Rgds
Tony
> Subject: Re: Regex in c
On Fri, 8 Apr 2016 09:02:36 -0300
Robert Boyl wrote:
> Hi, everyone!
>
> Sorry, lame with regex.
>
> How can I make a rule to catch:
>
> Need to buy a product ?
>
> And also catch "need to buy a product?"
>
> Note the extra spacing.
The body is normalized, so all consecutive whitespace b
Am 08.04.2016 um 14:02 schrieb Robert Boyl:
Hi, everyone!
Sorry, lame with regex.
How can I make a rule to catch:
Need to buy a product ?
And also catch "need to buy a product?"
Note the extra spacing.
Tried this, didnt work:
describe TEST123test
body TEST123/\bNeed t
On 2016-04-08 14:02, Robert Boyl wrote:
describe TEST123test
body TEST123/\bNeed to buy products *\?\b/i
scoreTEST123 0.0
If possible, also make it catch if more than 1 question mark :)
use \ in front of space char
and score with 0 disable the test, waste of rule :)
13 matches
Mail list logo