I have java code and I want to parse C file and find all the comments.
In order to find all the comments that are line or lines that start with
Your linebreak handling is not correct.
Try to use this:
This enables your
. character to match linebreaks as well.