Page 1 of 1

replacing/deleting text in a line

Posted: Mon Mar 03, 2008 5:39 pm
by xiaofei
how would you replace /delete the last two characters of a single line of text?

Posted: Mon Mar 03, 2008 7:48 pm
by MudGuard
replace

Code: Select all

..$
by whatever you want to replace them with (by nothing if you want to delete them.

Hmmmm

Posted: Mon Mar 03, 2008 8:28 pm
by xiaofei
so lets say i have
"marry had a little lamb name BO"

i would use YZ$ inorder to change to "YZ" ?

NEVER MIND

Posted: Mon Mar 03, 2008 8:30 pm
by xiaofei
i get it, sorry, havnt slept in a while.