- Code: Select all
<td>Foo [linebreak]
[not </td>]</td>
In other words, some of the HTML I'm editing has a cell, with text, and then additional text on the next line (after a break). I'm trying to remove the newline, move the 2nd line of text up to the first.
- Code: Select all
$[\n\s]*[a-zA-z]+
This regex is correctly finding what I want to find. However, I don't know how to KEEP the text but remove the line break. Here is an example:
- Code: Select all
<td>Single [break]
[tab]use bottle for Injection</td>
Should instead be
- Code: Select all
<td>Single use bottle for injection</td>
I don't know what to put into the replace field to 'maintain' the 'foo' word that is found with the [A-Za-z]+ part of the expression. I've tried \\2, \$2, \&2, \2, $2, &2. None of those work.