RegexpIsabsoluteurlCheck if absolute URL Checks if the given string is an absolute URL. Use RegExp.prototype.test() to test if the string is an absolute URL. const isAbsoluteURL = str => /^[a-z][a-z0-9+.-]*:/.test(str); Example Last updated on January 31, 2023IndentstringIsalpha