Validate Pattern Not Working for Reg Expression


Wishing you all a very happy & prosperous new year.

I am trying to put a validation on one of the attribute for Email. Following the manual , expression I am using is :


Which is not working as it validate false every time even if we enter a valid email i.e:

However I have checked d2:validatePattern for other expressions like :


Which is working fine for not contain numbers.

The Reg Expression I am using for email is working fine on normal html.

Has anyone used the validate pattern for email before?

Dhis2 Version: 2.25

Build revision: :8982deb

Thanks & Regards,

Sourabh Bhardwaj