I tried to use regex to validate email using the code below:
RE pattern = new RE("^([a-zA-Z0-9.!#$%&\'*+/=?^`{|}~]|-|_)+@((\\\\\\\\[[0-9]{1,3}\\\\\\\\.[0