replacing/deleting text in a line

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
xiaofei
Posts: 3
Joined: Mon Mar 03, 2008 5:35 pm

replacing/deleting text in a line

Post by xiaofei »

how would you replace /delete the last two characters of a single line of text?
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

replace

Code: Select all

..$
by whatever you want to replace them with (by nothing if you want to delete them.
xiaofei
Posts: 3
Joined: Mon Mar 03, 2008 5:35 pm

Hmmmm

Post by xiaofei »

so lets say i have
"marry had a little lamb name BO"

i would use YZ$ inorder to change to "YZ" ?
xiaofei
Posts: 3
Joined: Mon Mar 03, 2008 5:35 pm

NEVER MIND

Post by xiaofei »

i get it, sorry, havnt slept in a while.
Post Reply