RE Deleting Every Other Line Instead of Every Line
Posted: Tue Jul 30, 2013 1:11 am
I'm using TextPad 7.0.9.
I want to delete lines that begin with a tab. My RE is deleting every other line instead of every line. What's bothering me is that it works when I step through the text deleting each line by line. It doesn't work when I do replace all. My file is too large to replace each line by itself. In my example I'm using <tab> to represent a tab character:
example:
<tab>1<tab><tab><tab>
<tab>2<tab><tab><tab>
<tab>3<tab><tab><tab>
<tab>4<tab><tab><tab>
result:
<tab>2<tab><tab><tab>
<tab>4<tab><tab><tab>
Find: ^\t[^\r]*\R
Replace with: null
I've tried almost every combination of \r\n, just \n, \R, or $ at the end of the RE and in the character class. They all give the same result. Thanks in advance.
I want to delete lines that begin with a tab. My RE is deleting every other line instead of every line. What's bothering me is that it works when I step through the text deleting each line by line. It doesn't work when I do replace all. My file is too large to replace each line by itself. In my example I'm using <tab> to represent a tab character:
example:
<tab>1<tab><tab><tab>
<tab>2<tab><tab><tab>
<tab>3<tab><tab><tab>
<tab>4<tab><tab><tab>
result:
<tab>2<tab><tab><tab>
<tab>4<tab><tab><tab>
Find: ^\t[^\r]*\R
Replace with: null
I've tried almost every combination of \r\n, just \n, \R, or $ at the end of the RE and in the character class. They all give the same result. Thanks in advance.