--- notion-id: 08f411ec-9327-4ae7-a8fe-3888420aae8c cover: "[[Notion/技术支持/正则表达式学习/attachments/正则表达式学习.jpeg]]" --- # 语法教程 --- [正则表达式官方语法](https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/regular-expression-language-quick-reference) [揭开正则表达式的神秘面纱](http://www.regexlab.com/zh/regref.htm) [正则表达式30分钟入门教程](https://deerchao.cn/tutorials/regex/regex.htm) [https://github.com/ziishaned/learn-regex/blob/master/translations/README-cn.md](https://github.com/ziishaned/learn-regex/blob/master/translations/README-cn.md) # 工具教程 --- [[Notion/技术支持/正则表达式学习/RegexBuddy使用教程]] [正则表达式在线测试工具](http://tool.rbtree.cn/regtool/) # 参考模板 --- [正则表达式模板](https://any86.github.io/any-rule/) [如何获取特定字符后的所有字符](https://qa.1r1g.com/sf/ask/284124641/) 未完待续 # 个人掌握以及复习 --- [个人学习笔记-字符](知识参考/个人学习笔记-字符/个人学习笔记-字符.md) [Excel中使用正则表达式](知识参考/Excel中使用正则表达式.md) > [!note]+ ==**个人实操记录笔记**== > > [!note]+ 删除空白行 > > ^\s*(?=\r?$)\n > > > [!note]+ 搜索文件后缀名 > > \.(avi|asd) > > > [!note]+ 获取字符后面的变量 > > ,[\s\S]*$ #获取逗号后面的字符 > > pt_key[\s\S]*; #获取pt到;后面的字符 > > pt_key[\s\S]*$ #获取pt后面的所有字符 > > > [!note]+ 多条件匹配 > > pt[\s\S]*;|备注[\s\S]*" > > [公式拆解说明](知识参考/公式拆解说明.md) > > > > > [!note]+ 匹配中文 > > ```javascript > > [^\x00-\xff] #注意匹配非^ > > ``` > > > > > [!note]+ 获取两个字符之间的内容 > > ```javascript > > \[(.*)\] #注意转义字符 > > ``` > > > [!note]+ 文本查找以及替换练习 > > 关键指令:\s-\s副本|\s\(.\) > > [分析指令](知识参考/分析指令.md) > > > [!note]+ 匹配后缀【字符运用】 > > ```javascript > > .*\.iso$ > > -------------- > > . 任意字符 > > * 上一个字符 > > \. 转义 > > $ 结束语句 > > ``` > > > [!note]+ 搜索第一个空格和-前面的 > > [\W]*-\s > > `注意-\s :-搭配后边的\s空格`