Editplus 正则替换
来源:互联网 发布:为什么电脑连不到网络 编辑:程序博客网 时间:2024/06/10 04:07
EditPlus supports following regular expressions in Find, Replace and Find in Files command.
ExpressionDescription/tTab character./nNew line..Matches any character.|Either expression on its left and right side matches the target string. For example, "a|b" matches "a" and "b".[]Any of the enclosed characters may match the target character. For example, "[ab]" matches "a" and "b". "[0-9]" matches any digit.[^]None of the enclosed characters may match the target character. For example, "[^ab]" matches all character EXCEPT "a" and "b". "[^0-9]" matches any non-digit character.*Character to the left of asterisk in the expression should match 0 or more times. For example "be*" matches "b", "be" and "bee".+Character to the left of plus sign in the expression should match 1 or more times. For example "be+" matches "be" and "bee" but not "b".?Character to the left of question mark in the expression should match 0 or 1 time. For example "be?" matches "b" and "be" but not "bee".^Expression to the right of ^ matches only when it is at the beginning of line. For example "^A" matches an "A" that is only at the beginning of line.$Expression to the left of $ matches only when it is at the end of line. For example "e$" matches an "e" that is only at the end of line.()Affects evaluation order of expression and also used for tagged expression./Escape character. If you want to use character "/" itself, you should use "//".
The tagged expression is enclosed by (). Tagged expressions can be referenced by /0, /1, /2, /3, etc. /0 indicates a tagged expression representing the entire substring that was matched. /1 indicates the first tagged expression, /2 is the second, etc. See following examples.
Original Search Replace Result
abc (ab)(c) /0-/1-/2 abc-ab-c
abc a(b)(c) /0-/1-/2 abc-b-c
abc (a)b(c) /0-/1-/2 abc-a-c
From Editplus Manual Help
- Editplus 正则替换
- Editplus使用正则替换
- EditPlus正则替换
- EditPlus正则替换
- Editplus中正则替换内容
- EditPlus正则表达式替换字符串
- editplus正则匹配查找替换
- editplus查找替换 正则表达式
- editplus 正则替换实例 By Stabx
- EditPlus正则表达式替换字符串详解
- EditPlus正则表达式替换字符串详解
- EditPlus正则表达式替换字符串详解
- 关于EditPlus正则表达式替换字符串详解
- Editplus等软件中正则替换技巧
- EditPlus替换技巧(运用正则表达式)
- Editplus查找替换的正则表达式应用
- EditPlus正则表达式替换字符串详解
- EditPlus正则表达式替换字符串详解
- 代码设计规范
- Windows下进程通信的几种方式
- 手机支持的游戏格式汇总
- SQL优化
- ASP.NET中字符串进行MD5加密
- Editplus 正则替换
- 为悲情的小贝神伤
- JavaScript 中使用 replace 达到 replaceAll的效果
- 那一场田园风光
- 问题及解决
- C#实现winform软件开机自动启动并最小化到系统托盘
- 在csdn安家了!
- js调用收藏某个网站
- 正则表达式