我有这样的评论(几个例子):
//======================================================================== // some text some text some text some text some text some text some text
//======================================================================== // some text some text some text some text some text some text some text some text // some text some text // (..)
我想用这种风格的评论替换它:
/*****************************************************************************\
Description:
some text some text
some text some text some text
\*****************************************************************************/
所以我需要正则表达式。我设法制作了这个正则表达式:
//=+\r//(.+)+
它匹配组中的注释,但只有一行(示例 1)。如何使它与多行注释一起工作(如示例 2)?
感谢帮助