BackSpace..

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
danielc
Posts: 2
Joined: Thu Jun 14, 2007 5:20 pm

BackSpace..

Post 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
troels_kn
Posts: 32
Joined: Fri Oct 28, 2005 12:51 pm

Post by troels_kn »

Search for \n.00 and replace with .00
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Better search for \n\.00 as . stands for any character, \. for a dot.
troels_kn
Posts: 32
Joined: Fri Oct 28, 2005 12:51 pm

Post 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.
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

No it wouldn't.
danielc
Posts: 2
Joined: Thu Jun 14, 2007 5:20 pm

backspace...

Post by danielc »

Thank you all, that did it...
troels_kn
Posts: 32
Joined: Fri Oct 28, 2005 12:51 pm

Post by troels_kn »

ben_josephs wrote:No it wouldn't.
My bad. You're right.
Post Reply