# First, we'll list things we want # to match, but not throw away #### (?:/[^\r\n\*\/]+/) # Match RegExp | #### .replace(/\//, "") abc/100 // comment
## (?:/[^\r\n\*\/]+/) # Match RegExp | ##
## .replace(/\//, "") abc/100 // comment