在特定字符之后添加后缀并在字符数字后面添加Notepad ++(Add suffix after specific after some characters and after number of

编程入门 行业动态 更新时间:2024-10-26 04:25:15
在特定字符之后添加后缀并在字符数字后面添加Notepad ++(Add suffix after specific after some characters and after number of characters Notepad++)

我喜欢在这些字符之后添加.pdf文本:= pd并且在Notepad ++中面后面的字符后面有6个字符

例如:

for text: =pd374069 =pd422552 add suffix: =pd374069.pdf =pd422552.pdf

Id like to add .pdf text after these characters: =pd and after 6 characters behind characters above in Notepad++

for example:

for text: =pd374069 =pd422552 add suffix: =pd374069.pdf =pd422552.pdf

最满意答案

按ctrl + h或进入查找/替换窗口。 选择替换选项卡,然后选择正则表达式选项。

在查找文本框中输入(=pd\d{6}(?!\d))

在替换窗口中输入\1\.pdf

它会改变

SPEC SHEET=pd374053;MANUAL=pd374069;SPEC SHEET=pd422552

SPEC SHEET=pd374053.pdf;MANUAL=pd374069.pdf;SPEC SHEET=pd422552.pdf

Press ctrl+h or go into the find/replace window. Select Replace tab and choose the Regular Expression option.

In the find text box enter (=pd\d{6}(?!\d))

In the replace window enter \1\.pdf

It will transform

SPEC SHEET=pd374053;MANUAL=pd374069;SPEC SHEET=pd422552

into

SPEC SHEET=pd374053.pdf;MANUAL=pd374069.pdf;SPEC SHEET=pd422552.pdf

更多推荐

本文发布于:2023-07-27 05:02:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1285473.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字符   并在   后缀   数字   在特定

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!