Negotiable Paleobotanist Missions

    regexp-special-chars

    0.1.0 • Public • Published

    regexp-special-chars NPM version

    Special RegExp characters, useful for escaping.

    Install

    Install with npm:

    npm i regexp-special-chars --save-dev

    Usage

    var reChars = require('regexp-special-chars');
    var esc = function(str) {
      return str.replace(reChars, '\\$&');
    };

    Author

    Jon Schlinkert

    License

    Copyright (c) 2014 Jon Schlinkert, contributors.
    Released under the MIT license


    This file was generated by verb-cli on June 30, 2014.

    Install

    npm i regexp-special-chars

    DownloadsWeekly Downloads

    172

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • jonschlinkert