parse-regexp

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

npm install parse-regexp
2 downloads in the last week
20 downloads in the last month

parse-regexp

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

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

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

  => /whatever/m

License

MIT

npm loves you