Current File : //lib/node_modules/bower/lib/node_modules/mout/string/escapeRegExp.js
var toString = require('../lang/toString');

    /**
     * Escape RegExp string chars.
     */
    function escapeRegExp(str) {
        return toString(str).replace(/\W/g,'\\$&');
    }

    module.exports = escapeRegExp;