Hello Friends,

I am trying to check whether email id is valid or not.
I have a pattern and i want this in function
my pattern is :

"^(?(\)(\[^\]+?\@)|(([0-9a-z]((\\.(?!\\.))|[-!#\\$%&'\\*\\+/=\\?\\^`\\{\\}\\|~\\w])*)(?<=[0-9a-z])@))(?(\\[)(\\[(\\d{1,3}\\.){3}\\d{1,3}\\])|(([0-9a-z][-\\w]*[0-9a-z]*\\.)+[a-z0-9]{2,24}))$"
I don't understand how to use in function.

Please suggest me.