regex explanationFri, 17 Feb 2023

/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/

The regex matches email addresses. Note that the dot "." is not interpreted in a special way.

Questions about programming?Chat with your personal AI assistant