Page 1 of 1

BackSpace..

Posted: Thu Jun 14, 2007 5:42 pm
by danielc
Hello folks,

I have read through the posts in regards to backspace. But before I abandon the idea that I can't replace a character with a backspace. I would like to post...

What I am attempting to accomplish is the following:

before:

001 dan test ABC001 $50
.00 $0.00
002 rob ring ABC001 $99
.00 $5.00
001 bill tom ABC001 $80
.00 $10.00

after:
001 dan test ABC001 $50.00 $0.00
002 rob ring ABC001 $99.00 $5.00
001 bill tom ABC001 $80.00 $10.00

I would like to backspace the string that starts with .00 one line.
I can search for ^.00 and that would give me all lines that start with that string. But can I actually backspace like in what I have done in 'after'?

Thank you in advance,

Daniel

Posted: Thu Jun 14, 2007 6:15 pm
by troels_kn
Search for \n.00 and replace with .00

Posted: Thu Jun 14, 2007 6:36 pm
by MudGuard
Better search for \n\.00 as . stands for any character, \. for a dot.

Posted: Thu Jun 14, 2007 7:06 pm
by troels_kn
MudGuard wrote:Better search for \n\.00 as . stands for any character, \. for a dot.
That would depend on, whether TP is configured to use POSIX style syntax or not.

Posted: Thu Jun 14, 2007 7:09 pm
by ben_josephs
No it wouldn't.

backspace...

Posted: Thu Jun 14, 2007 7:51 pm
by danielc
Thank you all, that did it...

Posted: Thu Jun 14, 2007 8:39 pm
by troels_kn
ben_josephs wrote:No it wouldn't.
My bad. You're right.