批量操作的时候,经常需要在每行行头加上public string ,行末加上;号之类的操作 使用正则替换,即可用普通文本工具实现这个操作 匹配行头 ^ 匹配行尾 $ 转载于:https://www.cnblogs.com/xushining/p/5322938.html