Ruphaa's Notes

How to use regex to check for domain in URL?

js
regex

/(?:http(?:s)?:\/\/)?(?:w{3}\.)?([^\.]+)/I;