Hi,

I try to use a regex for Acronis Backup email.

In all email subject we have the same sentence :

SHP - RÉSUMÉ DES ALERTES ACTIVÉ Thu Oct 24 06:00:59 2019 (Critique : 0, Erreur : 0, Avertissement : 0) Device:  Plan:

The idea, detect if the count of "Erreur" is more than zero.

So i have try with this regex :

(?=.([Erreur :])+([1-9])).*

But it's doesn't work.

thanks.


Article Comments

Any idea ?

thanks


Oct, 2019 - Permalink

The following regex should match all mails that contain anything but Erreur : 0:

(Erreur.:.[1-9]{1}\d{0,5})

Let me know if it worked!


Oct, 2019 - Permalink

Thanks, it's work prefectly !!


Oct, 2019 - Permalink