1
Answer

remove comments

Ask a question

am loading  cpp program into richtextbox, if the program have comments
comments means

//sum = a + b ;

       OR
/*
sum = a + b ;
cout<< "answer" , sum ;
*/
so if the program have comments, before it will load into richtextbox i have to remove the comments area, that means  the program shouldn't read that area. any idea using regular expression

Answers (1)