# vscode 正则表达式使用技巧 ## 每行替换为块注释 ```regexp .* ``` 替换为 ```text /** * $0 */ ``` ## 大小写字母转换 - 大写转小写 ```regexp [A-Z] ``` 替换为 ```text \L$0 ``` - 小写转大写 ```regexp [a-z] ``` 替换为 ```text \U$0 ```