regex explanationWed, 15 Feb 2023

/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;

The above regex is used to check any valid email address.

Questions about programming?Chat with your personal AI assistant