I am trying to parse comments in my source file and I am stuck with reg exp.
/************************************************************
* Code formatted by SoftTree SQL Assistant © v10.1.278
* Time: 23.04.2021 11:57:15
************************************************************/
/*******************************************
*
* some string 1
*
* some string 2
*
* some string 3
*
*******************************************/
I am trying to extract text
some string 1
some string 2
some string 3
If my Reg Exp looks like
/( \* ([\S ]+)\n)/g
it catches strings from the first comment block. So, I am trying to make it to process only second comment block with lookbehind:
/(?<=\/[\*]{43}\n)( \* ([\S ]+)?\n)/g
But with this reg exp I am getting only line *, that is going after /*******************************************.
How to combine lookbehind with simple reg exp /( \* ([\S ]+)\n)/g to catch lines with strings that are comes after /*******************************************?
I mean, these strings:
some string 1
some string 2
some string 3