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: 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]+)*.$/ DISCARD

any ideas?


El 17/04/18 a las 14:39, Phil Stracchino escribió:
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 expression, you want something like this:

/.{,64}(your linked profile)/




--

Reply via email to