我正在使用 Notepad++,但我无法弄清楚:
我有很多行都以http
。我需要在每一行的前面添加一些文本。另外,我需要在每行末尾添加不同的文本。每行的结尾都不同。
将文本添加到每行的开头和结尾的最快方法是什么?
按着这些次序:
- Press Ctrl+H to bring up the Find/Replace Dialog.
- 选择
Regular expression
对话框底部附近的选项。
添加一个词,例如test
,在开始每行的:
- Type
^
in the Find what
textbox
- Type
test
in the Replace with
textbox
- 将光标放在文件的第一行以确保所有行都受到影响
- Click
Replace All
button
添加一个词,例如test
,在end每行的:
- Type
$
in the Find what
textbox
- Type
test
in the Replace with
textbox
- 将光标放在文件的第一行以确保所有行都受到影响
- Click
Replace All
button
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)