Finding line beginning using regular expression

后端 未结 5 741
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 04:45

Finding Line Beginning using Regular expression in Notepad++

I want to strip a 4000-line HTML file from all the jQuery "done" attributes in a div.

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-31 05:38

    A simple way is:

    1. Goto "Search" and "Replace"
    2. Input "\n" in "Find what"
    3. Input your string in "Replace with"
    4. Select "Extended" in "Search Mode"
    5. Click "Replace All"

    It will plug your string at the beginning of each line except the first line.

提交回复
热议问题