C strip comments
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. I just want the source code with comments stripped, nothing else should be changed. Preference towards an existing tool. I don't want to have to write this myself with regexes, I foresee too many surprises in the code. It depends on how perverse your comments are.
Michelle Monaghan. Age: 24. Blonde with beautiful wet lips, big eyes full of warmth and passion. Men are my weakness and my infinite power directed at bed talent, my wonderful mood and feeling of lightness. When I am in a hot captivity of your arms in a muffled light, it seems to me that the whole world is at my feet.
The task is to remove text that follow any of a set of comment markers, in these examples either a hash or a semicolon from a string or input line. Some other languages might be incorrect for the same reason. Please discuss this issue at Talk:Strip comments from a string. It was always said in discussion, the task is not really stripping comments. It's only a truncation.
Dianna Agron. Age: 26. How about spend time in the company of a seductive girl? If that is what you need , I’m ready to meet you! I’m here to give my beauty and charm. I’m sure you can’t pass me by. I am a beautiful, sociable girl with lots if interests. You will really like our communication. I feel relaxed and there are no taboo topics for me.
Work fast with our official CLI. Learn more. If nothing happens, download GitHub Desktop and try again.
It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. Yes, I could do it by hand, but that seems needlessly laborious, has the potential for mistakes, and makes maintenance difficult.