From 065dfea5ad4415454fcb84479a3aefc9d0b3c659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E7=94=B1?= Date: Tue, 13 Jul 2021 20:27:32 +0800 Subject: [PATCH] =?UTF-8?q?vscode=20=E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE?= =?UTF-8?q?=E5=BC=8F=E4=BD=BF=E7=94=A8=E6=8A=80=E5=B7=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 5 ++--- VSCodeRegularExpression.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 VSCodeRegularExpression.md diff --git a/Readme.md b/Readme.md index a4ac3fd..f9a9542 100644 --- a/Readme.md +++ b/Readme.md @@ -1,8 +1,7 @@ # 笔记本 - - + [德劳内三角形数学公式](DVAlg.md) + [Clion配置Docker工具链](ClionDockerCentosGccToolchain.md) + [编译GDAL](build_gdal.md) -+ [Windows 10 基于wsl2的Docker更改Image存放位置](MoveDockerImageWindows.md) \ No newline at end of file ++ [Windows 10 基于wsl2的Docker更改Image存放位置](MoveDockerImageWindows.md) ++ [vscode 正则表达式使用技巧](VSCodeRegularExpression.md) \ No newline at end of file diff --git a/VSCodeRegularExpression.md b/VSCodeRegularExpression.md new file mode 100644 index 0000000..e95deac --- /dev/null +++ b/VSCodeRegularExpression.md @@ -0,0 +1,32 @@ +# vscode 正则表达式使用技巧 + +## 每行替换为块注释 + +```regexp +.* +``` +替换为 +```text +/** + * $0 + */ +``` + +## 大小写字母转换 + +- 大写转小写 +```regexp +[A-Z] +``` +替换为 +```text +\L$0 +``` +- 小写转大写 +```regexp +[a-z] +``` +替换为 +```text +\U$0 +``` \ No newline at end of file