0

I need to extract the following data

/** Hi **/
#define 1
/** Hi **/
#define something() \
here \
another one
/** HI 
 * SOmething
**/

I need to extract all the multi-line comments . I have tried this https://regex101.com/r/jD5bR1/1 but it doesnt seem to work

(^\/\*\*(.*?)\*\*\/)

What am I doing wrong? It is matching only the first comment. How do I match all multi line comments?

losang
  • 85
  • 1
  • 5

0 Answers0