/*start*/import 'aaa';/*end*/let a={ b: c /*start*/ d: e /*end*/}現(xiàn)想匹配所有/*start*/到/*end*/的內(nèi)容,替換成"",即以上代碼只剩下:let a={ b: c}這怎么寫正則,主要里邊又有空格又有回車。。。
匹配兩個注釋及之間的內(nèi)容,怎么寫正則?
慕容3067478
2019-03-14 14:15:20