Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用这个正则表达式替换 /* 和 */ 之间的任何字符,包括换行符(实际上我想替换代码中的所有注释)但这不起作用,有什么想法吗?
$replaceAll("(?s)/\ \ * . * \ \ * / ", "")