vscode 正则表达式使用技巧
This commit is contained in:
parent
64580087f7
commit
065dfea5ad
|
@ -1,8 +1,7 @@
|
|||
# 笔记本
|
||||
|
||||
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=1842801328&auto=1&height=66"></iframe>
|
||||
|
||||
+ [德劳内三角形数学公式](DVAlg.md)
|
||||
+ [Clion配置Docker工具链](ClionDockerCentosGccToolchain.md)
|
||||
+ [编译GDAL](build_gdal.md)
|
||||
+ [Windows 10 基于wsl2的Docker更改Image存放位置](MoveDockerImageWindows.md)
|
||||
+ [Windows 10 基于wsl2的Docker更改Image存放位置](MoveDockerImageWindows.md)
|
||||
+ [vscode 正则表达式使用技巧](VSCodeRegularExpression.md)
|
|
@ -0,0 +1,32 @@
|
|||
# vscode 正则表达式使用技巧
|
||||
|
||||
## 每行替换为块注释
|
||||
|
||||
```regexp
|
||||
.*
|
||||
```
|
||||
替换为
|
||||
```text
|
||||
/**
|
||||
* $0
|
||||
*/
|
||||
```
|
||||
|
||||
## 大小写字母转换
|
||||
|
||||
- 大写转小写
|
||||
```regexp
|
||||
[A-Z]
|
||||
```
|
||||
替换为
|
||||
```text
|
||||
\L$0
|
||||
```
|
||||
- 小写转大写
|
||||
```regexp
|
||||
[a-z]
|
||||
```
|
||||
替换为
|
||||
```text
|
||||
\U$0
|
||||
```
|
Loading…
Reference in New Issue