qcz / vscode-text-power-tools

Text Power Tools extension for VS Code
https://marketplace.visualstudio.com/items?itemName=qcz.text-power-tools
MIT License
96 stars 14 forks source link

copying comments and placing in a new file. #93

Open moltra opened 4 months ago

moltra commented 4 months ago

I am trying to use Regex to copy comments that are in the below format and copying them to a new file. But the multiple Regex expressions, I have tried have not worked.

/*
 ##multiline comment example
 line 2
 line 3
*/

Regexs tested. //.|\/*[\s\S]?*\/ \/*[\s\S]?\\/

I did get this regex \/* to match the starting / . But I cannot get the entire thing copied. I actually do not want the / & */ but I can remove them if I need to later.

What format of Regex are you using? I have tried a couple of different Regex generators.