[英]Regex Find and Replace in Notepad++
I want to find and replace following 我想查找并替换以下内容
rice', ' 36,650', 'https://s
va', ' 3,650', 'https://s
rat', ' 332,650', 'https://s
fe', ' 34,650', 'https://s
rfce', ' 13,650', 'https://s
aace', ' 53,650', 'https://s
to 至
rice', '36650', 'https://s
va', '3650', 'https://s
rat', '332650', 'https://s
fe', '34,650', 'https://s
rfce', '13650', 'https://s
aace', '53650', 'https://s
Removing one comma and space from the start of digit 从数字开头删除一个逗号和空格
Update 更新资料
It is not working with this one 这不起作用
(9, 'M-MG1', 'httion', 'Buyice', ' 3,650', 'https://', 4, 'February 22, 2016', 0, 0, 0, 0, 0, 1),
Search ' (\\d+),(\\d+)'
, replace by '\\1\\2'
. 搜索
' (\\d+),(\\d+)'
,替换为'\\1\\2'
。
Explanation : 说明:
\\d
is a digit \\d
是一个数字 \\d+
is one or more digits. \\d+
是一个或多个数字。 It will match as many digits as it can. (\\d+)
is a group containing one or more digits (\\d+)
是包含一个或多个数字的组 \\1
and \\2
are back-references : they reference the previously defined groups \\1
和\\2
是反向引用:它们引用先前定义的组 您可以尝试用\\1\\2
替换' ([0-9]+),([0-9]+)'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.