Module: js-whatever/js/escape-regex

js-whatever/js/escape-regex

require("js-whatever/js/escape-regex")(str) → {string}

Escapes regular expression characters in strings to allow them to be used with new RegExp()

Parameters:
Name Type Description
str string

The string to escape

Source:
Returns:

The input string with regular expression characters escaped

Type
string
Source:
Copyright 2013-2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Thu Jun 21st 18:04 2018 using the DocStrap template.