Current File : //usr/lib/node_modules/bower/lib/node_modules/mout/src/string/escapeRegExp.js
define(['../lang/toString'], function(toString) {

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

    return escapeRegExp;

});