Notepad++ add to every line

后端 未结 13 2005
无人共我
无人共我 2020-11-29 14:18

I\'m using Notepad++ and I can\'t figure this out :

I have numerous lines all starting with http. I need to add some text in front of it in every line.

13条回答
  •  半阙折子戏
    2020-11-29 14:48

    Follow these steps:

    1. Press Ctrl+H to bring up the Find/Replace Dialog.
    2. Choose the Regular expression option near the bottom of the dialog.

    To add a word, such as test, at the beginning of each line:

    1. Type ^ in the Find what textbox
    2. Type test in the Replace with textbox
    3. Place cursor in the first line of the file to ensure all lines are affected
    4. Click Replace All button

    To add a word, such as test, at the end of each line:

    1. Type $ in the Find what textbox
    2. Type test in the Replace with textbox
    3. Place cursor in the first line of the file to ensure all lines are affected
    4. Click Replace All button

提交回复
热议问题