Hmm. Not sure about this. I seem to remember that getting rid of C comments was a pain -
Death to Dot Star. Specifically
Merlin's Post and Ovid's Responses to that thread.
I know there is no dot-star in that regex, and it uses negative character classes but I am worried that it might fall into the same trap as the ones in the above nodes. I suppose, I could try it to see.
e.g. is this a valid C comment:
/* This my comment It spans a couple*
of lines.
* actually it spans 5 lines but it has
3 *s in it */
It seems to me that the above regex won't work here. Maybe it's not valid C comment.
Actually, I don't know what I'm talking about - I have been stuck at work today for too long - I just needed to node. I am going for a break.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.