javascript regex for email
Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To validate email string using regex, use /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ it will handle date. This regex will validate string date should passing it to the Date constructor returns a valid Date object. Let鈥檚 see short example of javascript regex for validate email. const regex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; console.log(regex.test("hello@infinitbility.github.io")) Today, I鈥檓 going to show you How do I check value contain valid date in javascript, as above mentioned, I鈥檓 going to use the above-mentioned regex with test() method....