[英]Replace With Regex Notepad++
can notepad++ replace using regex for this one:记事本++可以使用正则表达式替换这个:
any help much appreciated.非常感谢任何帮助。
You could use something like so:你可以使用这样的东西:
Find What: \\((\\d+), \\d+, ('.+?'), (\\d+), ('[^']+').+\\)
Replace with: \\($1, $2, $3, $4\\)
查找内容:
\\((\\d+), \\d+, ('.+?'), (\\d+), ('[^']+').+\\)
替换为: \\($1, $2, $3, $4\\)
Takes as input: (35, 25, 'xxxx.com', 82, '2014-07-18', 3, '2013-07-18', 1, 1,...)
yields: (35, 'xxxx.com', 82, '2014-07-18')
.作为输入:
(35, 25, 'xxxx.com', 82, '2014-07-18', 3, '2013-07-18', 1, 1,...)
产量: (35, 'xxxx.com', 82, '2014-07-18')
。
As an FYI, when posting code, please do not use images.作为仅供参考,发布代码时,请不要使用图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.