@Kirk-Lauritzen said in Find in files, Replace!:
wipe out every td in the cells (column 2)
If I understand correctly you have many tables, all of which are 3 columns wide with varying numbers of rows. Assuming there is a Header row (1st row generally) and a Description column (again generally the left most column) which we don’t want to clear, you are just wanting to clear the 2nd column of variable data, leaving the 3rd column variable data intact
I made up a small table with the above description in mind Its:
<html>
<head>
<title>
HTML td
</title>
</head>
<body>
<h1>Clear 1st column variable data</h1>
<h2>HTML td</h2>
<table border="1"
width="500">
<tr>
<th>NAME</th>
<th>AGE</th>
<th>BRANCH</th>
</tr>
<tr>
<td>BITTU</p></td>
<td><p class=“d”>22</p></td>
<td><p class=“b”>CSE</p></td>
</tr>
<tr>
<td>RAKESH</p></td>
<td><p class=“d”>25</p></td>
<td><p class=“b”>EC</p></td>
</tr>
</table>
</body>
</html>
Note that I’ve assumed here that the <p class=...> code is ONLY on the variable data fields. You do state =d and =b so these are used to identify the correct column to clear. You will need to confirm whether that is true if you want to try my solution.
So using the “Replace” function
Find What:(?s)(<td><p class.+?“d”>).+?(</p></td>)
Replace With:\1\2
You MUST use search mode “regular expression” and have wrap around ticked. I noted you mentioned extended in your first post, however I have shown the selection “regular expression” as the mode to use. You also mentioned about a particular field as “containing 21 wrapped lines”. I’m thinking these lines are in fact only 1 line and if you were to turn off “word wrap” (in Notepad++) then that field would extend far to the right (off screen).
There a few assumptions I’ve had to make as you have not made much very clear, as the others have stated. In fact an example, much like I produced above, would have made a significant step forward in outlining your problem and request. To go even further, you could show that same code with the relevant data removed, thus giving us a more complete picture of the before and after situation (as @PeterJones mentioned). The quotes you use around the d and b may also have been altered in copying into the NPP post so you may need to alter them in my “Find What” expression if they aren’t of the correct kind, I did copy them from your post.
Terry