replace single line javascript comments with multiline style comments in Notepad++ using regular expressions

前端 未结 2 484
你的背包
你的背包 2021-01-26 05:43

I would like to use Notepad++ to search a javascript file or a html file containing some javascript and replace all single line comments with a multiline style comment.

2条回答
  •  醉梦人生
    2021-01-26 06:19

    This is not a job for regex, use a parser instead. Have a look at: Esprima for example.

提交回复
热议问题