我刚接触过powershell,需要一些帮助。我想使用替换函数从C++源代码中删除所有注释。这是单行和多行注释:
/*
Comment here.
*/
// Comment here.有人能帮我做这个的powershell regex吗?
发布于 2015-04-09 14:12:51
看看这个answer。
在Powershell中,您也可以使用Regex.Replace,但方式略有不同:
[regex]::Replace($input, $pattern, $replacement)https://stackoverflow.com/questions/29540646
复制相似问题