in reply to Re: matching comments
in thread matching comments
Your regular expression will match this, but it isn't actually a comment.char * comptr = "Comment: /* In comment. */";
Again, this may not be an issue for the OP, but if it is, you should take a look at the the faq How do I use a regular expression to strip C style comments from a file?; perhaps you can extend this to your uses.
|
|---|