I have the following string I am trying to search for:
<td></td>
<td>)</td>
There can be any number of spaces between the </td>
and <td>
besides the newline. There will always be only one newline but an expression that simply ignores all whitespace (including newlines) is fine.
I'm trying to figure out how to perform a string replacement using this information without collapsing all of the whitespace in the file. I found many solutions with an expression that handles whitespace but nothing that I have been able to make work with a newline as well.
My regex experience is limited. How should I approach this problem from a bash shell environment?