简体   繁体   中英

Change replace and exclude multiline html code

Looking for a bit of help. After completing hundreds of pages, I came across an HTML error. Need simply to move the /h1> closing tag to reside before the p> tag Is it possible with notepad++ or other, to find these 6 lines and replace the /h1> tag from line 6 to the end of the second line? Appreciate the help, if it's possible, as it will save a lot of work replacing it individually on all my pages.

Code is; tab delimited.

Note: The title and paragraph are never the same.

Find:

 <h1 id="h-title">
              Estatus rogue
              <p>ext 098 float
                <br>
              </p>
            </h1>

Replace with:

<h1 id="h-title">
              Estatus rogue</h1>
              <p>ext 098 float
                <br>
              </p>

In advance all my appreciation for your help

Try downloading/using Visual Studio Code Community and doing a find and replace in multiple files

Here's a link to someone else who has done this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM