Regex, React, JavaScript, Nodejs, Development.
character which is not @ and space (+ indicates one or more occurrence of the previous character) @[^@ ]+ => then one single @ symbol and after that no @ symbol and no space allowed(+ indicates one or more occurrence of the previous character) \.[^@ \.]{2,}$ => then one dot and then at least 2