I have a large .cpp file where I want to remove all comment between the /**
and the */
. This needs to work across lines as well.
I tried doing a regular Find and Replace using \\/.*? */
\\/.*? */
in the Find box and I found this
*/
int totalCount = 0;
/**
Can anyone help?
您可以使用lookbehind和lookahead:
(?<=/\*\*)(.*?)(?=\*/)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.