记事本中需要简单的宏++。插入 400 行字符
我需要简单地将等号 (=) 插入到从电子表格复制的每一行文本中。例如,我复制了 2 个单数列,如下所示:
Column A Column B
Manchester 192.168.1.10
London 192.168.1.11
New York 192.168.1.12
我已将这两列复制到 Notepad++
Manchester 192.168.1.10
London 192.168.1.11
New York 192.168.1.12
中,现在我有: 这很好...但是我现在需要使每行在位置名称和 IP 之间都有“=”地址,例如:
Manchester = 192.168.1.10
London = 192.168.1.11
New York = 192.168.1.12
有人知道如何做到这一点吗?我知道如何在宏中记录等号,但无法让宏为每一行执行此操作!
I need to simple insert an equal symbol (=) onto every line of text I have copied from a spreadsheet. For example, I have copied 2 singular columns looking like:
Column A Column B
Manchester 192.168.1.10
London 192.168.1.11
New York 192.168.1.12
I have copied these 2 columns into Notepad++ and now I have:
Manchester 192.168.1.10
London 192.168.1.11
New York 192.168.1.12
Which is fine... however I now to need make each line have '=' in, between location name and IP address, for example:
Manchester = 192.168.1.10
London = 192.168.1.11
New York = 192.168.1.12
Does anyone have any ideas how to do this? I know how to get the equal symbol to record in the macro, but can't get the macro to do this for every line!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果每个 IP 地址都以 192 开头,您只需按 CTRL+H 即可替换所有出现的“192”。与“= 192”。
If every IP address begins with 192. you can simply CTRL+H and replace all occurances of ' 192.' with ' = 192.'
只需使用搜索和替换即可。将“1”替换为“= 1”。
Just use search and replace. Replace " 1" with " = 1".
CTRL+F &在替换选项卡上
搜索
([az])(\s+)([1-9])
替换为
\1 = \3
勾选正则表达式 &代替。
CTRL+F & on the Replace tab
Search for
([a-z])(\s+)([1-9])
Replace with
\1 = \3
Tick Regular Expression & replace.