How do i use Find and Replace in Files in Notepad++ to delete the following lines from multiple files?

<meta name="perc_linkback" id="perc_linkback" content="xxxxxxxxxxx"/>


<link rel="canonical" href="xxxxxxxxxxx.html"/>

Where xxxxxxxxxxx is a string of different characters that varies in length.


Use following regex string : <meta name="perc_linkback" id="perc_linkback" content=".*"/> to select <meta name="perc_linkback" id="perc_linkback" content="xxxxxxxxxxx"/> And select Regular Expression radio button

enter image description here

Thing to notice is whenever you need to select a variable number of characters use .* And when you need to select . use \.

So to select <link rel="canonical" href="xxxxxxxxxxx\.html"/> search string should be <link rel="canonical" href=".*.html"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.