index.js
function replace(regex, source, options) {
  var valueOrFn = getValueOrMatchFn(options.value)
  source.replace(regex, function () { return '' })
  return source.replace(regex, valueOrFn)
}
function replace(regex, source, options) {
  var valueOrFn = getValueOrMatchFn(options.value)
  source.replace(regex, function () { return '' })
  return source.replace(regex, valueOrFn)
}
function replace ( regex , source , options ) { var valueOrFn = getValueOrMatchFn ( options . value ) source . replace ( regex , function ( ) { return '' } ) return source . replace ( regex , valueOrFn ) }
Execute a replace operation and return the modified source.

@param {RegExp} regex
@param {string} source
@param {LoaderOptions} options
@returns {string}
Execute a replace operation and return the modified source .