Notepad++中的正则_替换匹配串中的字符
2012-06-15 11:26
267 查看
Example. Replace the specified char in the string.
Find what: ([0-9][0-9])\.([0-9][0-9])\.([0-9][0-9])\.([0-9][0-9][0-9])
Replace with: \1:\2:\3:\4
FROM STRING: 03.07.18.109
TO STRING: 03:07:18:109
\1, \2, \3 ... without \0
A number should match a bracket pair.
Find what: ([0-9][0-9])\.([0-9][0-9])\.([0-9][0-9])\.([0-9][0-9][0-9])
Replace with: \1:\2:\3:\4
FROM STRING: 03.07.18.109
TO STRING: 03:07:18:109
\1, \2, \3 ... without \0
A number should match a bracket pair.
相关文章推荐
- PHP中正则表达式对UNICODE字符码的匹配方法
- 《黑马程序员》 正则的匹配 切割 替换 获取的操作演示
- 正则表达式匹配并替换字符串
- js中使用正则表达式(五)特殊字符、匹配模式、捕获组与反向引用介绍
- C# 用正则表达式替换字符串中所有特殊字符
- 正则表达式如何实现不替换查找的匹配文本?
- 正则表达式匹配所有以小写字符开头的单词
- 实用正则表达式匹配和替换
- 正则表达式 入门 -- 简单字符匹配、元字符
- swift 3.0 正则表达式查找/替换字符
- JavaScript权威指南_82_第10章_正则表达式的模式匹配_10.1.1-正则表达式的定义-直接量字符
- PHP正则匹配中文字符(囊括大部分)
- JAVA正则表达式匹配,替换,查找,切割
- 正则表达式匹配任意字符(包括换行符)的写法
- PHP正则匹配6到16位字符组合(且只能为数字、字母、下划线)
- js正则表达式 匹配两个特定字符间的内容示例
- 【正则表达式】匹配中文字符 整理
- 匹配中文字符的正则表达式: [u4e00-u9fa5]
- PHP用正则匹配字符串中的特殊字符防SQL注入
- 关于php中正则匹配包括换行符在内的任意字符的问题总结