[英]After regex finding, how do i replace a part of the result in Notepad++?
How do i add a space character before the last occurring "ms" in every line?如何在每一行中最后出现的“ms”之前添加一个空格字符? I tried the regex find but how do i replace only the last part of that found string?
我尝试了正则表达式查找,但如何仅替换找到的字符串的最后一部分?
Am i missing out on syntax or a setting that i need to use/enable?我是否错过了需要使用/启用的语法或设置?
Use capturing groups.使用捕获组。 Replace
代替
:\s+([0-9]+)ms
with和
: $1 ms
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.