a simple regext that can test Either but atleast one of (http, https, or www).
I've seen examples that has compulsion of protocol, or allows directly like google.com.
but for users, they are used to typing www., not all would type the protocol. But still it should be a valid one, and not a "abced.com"
(https?\:\/\/||www)[^\/$\s]+from: regexr.com/38kqk and regexr.com/3c6nt