Given text with some phrases between /* */
, I would like to remove the strings/phrases that are inside.
For example:
aaaabbbbb /*ppppqqqqrrrsss sstttuuu*/cccccddddeee
desired output:
aaaabbbbb /**/cccccddddeee
I tried to use re.sub(r'(\/*{2,3}[\s\n]*)(?:.*?[\s\n]*)*([\n\s]*\/*{2,3})
from python's REGEX, but the * symbol isn't recognized.
Does anyone know where I am going wrong?