JSFiddle - React, Tailwind, and code Playground
by softvar
JavaScript
var re = /^[a-z]+[._]*[a-z0-9\._-]*@[a-z]+.[a-z]{2,9}.?[a-z]{2,6}$/ ;
var r = re.test("[email protected]");
var b = /^(http(s)?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ ;
var res = b.test("http://123.com");
alert(res);