Global.String.prototype.isUrl ()
function checks if the string passed contains any characters that are forbidden in URLs and tries to create a java.net.URL from it FIXME: probably deprecated -> helma.Url

  • Returns
    Boolean
  • See also
    helma.Url.PATTERN
Sourcecode in /home/hannes/helma/modules/core/String.js:
171:   String.prototype.isUrl = function() {
172:       if (String.URLPATTERN.test(this))
173:           return true;
174:       try {
175:           return new java.net.URL(this);
176:       } catch (err) {
177:           return false;
178:       }
179:       return true;
180:  }