I’m using OSX sublime text 2, should be current version. I have regex turned on, and it’s finding what I want, which is;
<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.
$\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:
<td>Single [break]
[tab]use bottle for Injection</td>
Should instead be
<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.