$ npm install block-comment-regexRegExp for matching JavaScript-style block comments in a string. Should also work for SASS, LESS and other languages with the same block comment format.
npm i block-comment-regex --save
npm test
var re = require('block-comment-regex');
console.log(re().exec('abc /* block comment */ abc'));
// returns:
[ '/* block comment */',
' block comment ',
index: 4,
input: 'abc /* block comment */ abc' ]
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on November 23, 2014.