ARGH! How the hell do you remove a character from a string... (STILL UNRESOLVED)
Ok, this is really starting to bug me...
How do you remove a character from a string WITHOUT replacing the whole string? I've printed an example below.
This is the text I want to change. I've split it into the sections it's sent in, and each section is searched before it's appendeed to the end.
Code:
ÿ‚[N 10:48am 150/150hp 504/504m 706mv 1000xp> ÿù
Code:
ÿ‚[N 10:48am 150/150hp 504/504m 706mv 1000xp> ÿùThere is 1 character on you can see (yourself).
The most characters on since the last reboot has been 2.
=========---========= Vinarian Legends =========---=========
=========---========= "Dream the Dream..." =========---=========
-=-=-=-=-=--=-=-=-=-=-
=========---========= I m m o r t a l s =========---=========
=========---========= O n l i n e =========---=========
<***> Tiiyakanah de Tera, Bringer of Chaos and Order (H)
-=-=-=-=-=--=-=-=-=-=-
=========---========= M o r t a l s =========---=========
=========---========= O n l i n e =========---=========
For more info on maxon and other mud related stats type mudstats.
ÿ‚[N 10:48am 150/150hp 504/504m 706mv 1000xp> ÿù
Code:
--13:20:55--ticks--> TICK!
ÿ‚[N 10:48am 150/150hp 504/504m 706mv 1000xp> ÿù
So each one of those 'code' bits ('s really just there coz it's a monotyped font) is a seperate string, but when appended to the end of an rtf text box, they make up the entire string. But anyway, as each section comes in, I want to search it for escape sequences (not shown, but they're chr(27) and [) and those annoying y and u things...
And ideas? Oh, and this text ocmes in through Winsock's Recv function if that's any help.
Thanks.