I guess you "just" have to reverse the regular expression given in perlfaq6 or perldoc -q comments:
\*[^*]*\*+([^/*][^*]*\*+)*/|("(\\.|[^"\\])*"|'(\\.|[^'\\])*'|\n+|.[^/" +'\\]*)
Or maybe just make that one noncapturing and capture everything in between.
In reply to Re: parsing c++ and locating string in the code part
by Corion
in thread parsing c++ and locating string in the code part
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |