Javascript String matchAndGet(str)

Description

Javascript String matchAndGet(str)

String.prototype.matchAndGet = function (str) {
  var result = this.match(str)
  if (result) return result[1]
  return '';
}



PreviousNext

Related