No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test initial Oct 24, 2012
.gitignore initial Oct 24, 2012
.travis.yml initial Oct 24, 2012
LICENSE initial Oct 24, 2012
README.md link to safe-regex May 29, 2016
index.js tidy Oct 24, 2012
package.json 0.0.2 May 29, 2016

README.md

parse-regexp

parse a regexp string. parse(reg_exp.toString()) == reg_exp

<img src=https://secure.travis-ci.org/'Dominic Tarr'/parse-regexp.png?branch=master>

Put RegExps in your config files or, or use them as object keys!

  var rxparse = require('regexp-parse')
  rxparse('/whatever/m')

  => /whatever/m

If you are using this to parse user input I would recommend first passing the regular expression through safe-regex

License

MIT