hi,
Warnign : no regex will work if the subject is encoded, with more and more emoji and UTF8/accents in them your
success rate will be low if you do not control the subject type (plain text).
regards,
Ghislain.
> i check this regex with grep, it work fine but in postfix no.
>
> grep -E "^Reference No: PP-[0-9][0-9][0-9]+(-[0-9]+)*.$" test.txt
>
> Reference No: PP-425-168-292
>
> warning: header Subject: Reference No: PP-425-168-292
>
> /^Subject: ^Reference No: PP-[0-9][0-9][0-9]+(-[0-9]+)*.$/
here again :-( i need match this: Reference No: PP-425-168-292
I use this regex: ^Reference No: PP-[0-9][0-9][0-9]+(-[0-9]+)*.
but not work.
i check this regex with grep, it work fine but in postfix no.
grep -E "^Reference No: PP-[0-9][0-9][0-9]+(-[0-9]+)*.$" test.txt
Reference No:
thanks for your help.
regards.
El 17/04/18 a las 15:01, Phil Stracchino escribió:
On 04/17/18 13:53, Viktor Dukhovni wrote:
On Apr 17, 2018, at 1:39 PM, Phil Stracchino wrote:
In a Perl-compatible regular expression, you want something like this:
/.{,64}(your
On 04/17/18 13:53, Viktor Dukhovni wrote:
>
>
>> On Apr 17, 2018, at 1:39 PM, Phil Stracchino wrote:
>>
>> In a Perl-compatible regular expression, you want something like this:
>>
>> /.{,64}(your linked profile)/
>
> Which (when used verbatim) is equivalent to:
>
>
> On Apr 17, 2018, at 1:39 PM, Phil Stracchino wrote:
>
> In a Perl-compatible regular expression, you want something like this:
>
> /.{,64}(your linked profile)/
Which (when used verbatim) is equivalent to:
/your linked profile/
To restrict the match to strings
On 04/17/18 13:33, Emanuel wrote:
> my idea is to limit the possibilities of the regular expression
>
> by indicating only * there is an infinite number of possibilities
>
> I've been having no luck with a simple regex to match strings with 64 or
> less characters.
In a Perl-compatible regular
my idea is to limit the possibilities of the regular expression
by indicating only * there is an infinite number of possibilities
I've been having no luck with a simple regex to match strings with 64 or
less characters.
Regards,
El 17/04/18 a las 13:56, Viktor Dukhovni escribió:
On Apr
> On Apr 17, 2018, at 12:22 PM, Emanuel wrote:
>
> to apply a limit to the url??
>
> {64}.* (your linked profile)/
>
> it's correct this rule?
The above is much too cryptic. Perhaps you can state a clear goal and a more
precise question.
--
Viktor.
to apply a limit to the url??
{64}.* (your linked profile)/
it's correct this rule?
El 11/04/18 a las 02:59, Dominic Raferd escribió:
On 11 April 2018 at 01:24, Stephen Satchell > wrote:
The | operator is supposed to bind to a single token
Dominic Raferd writes:
> [1:text/plain Show]
>
>
> [2:text/html Hide Save:noname (6kB)]
>
> On 11 April 2018 at 01:24, Stephen Satchell wrote:
>
> The | operator is supposed to bind to a single token before and after.
>
> Not true - at least for
On 11 April 2018 at 01:24, Stephen Satchell wrote:
> The | operator is supposed to bind to a single token before and after.
>
Not true - at least for pcre. Just enclose the entire expression in
brackets:
/^Subject:\s*(Hello there|Hey man)/ DISCARD
(However Viktor's
On 04/10/2018 10:00 AM, Emanuel wrote:
Hello,
I have a problem when locking with regular expressions
I need match
/^Subject: (Hello there(.*)|Hey man(.*))/ discard
Break it up into two separate entries. There is little cost in doing so.
The | operator is supposed to bind to a single token
> On Apr 10, 2018, at 1:50 PM, Phil Stracchino wrote:
>
> /^Subject:.*(Hello there|Hey man)/DISCARD
Can't say I'd recommend discarding email on such tenuous grounds, but if that's
one wants:
header-checks.pcre:
# One if...endif block per header, here
On 04/10/18 13:00, Emanuel wrote:
> Hello,
>
> I have a problem when locking with regular expressions
>
> I need match
>
> /^Subject: (Hello there(.*)|Hey man(.*))/ discard
>
> The rule not work.!
>
> the parameter. * is correct?
>
> any ideas?
Well to start with, in that regex, both (.*)
Hello,
I have a problem when locking with regular expressions
I need match
/^Subject: (Hello there(.*)|Hey man(.*))/ discard
The rule not work.!
the parameter. * is correct?
any ideas?
thanks for your help.
--
16 matches
Mail list logo