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