Help Wanted

help with replacing in blitz basic – leet hacker

leet hacker

Member

Posts: 118
From: Hobbiton, Shire, Middle-Earth
Registered: 07-30-2007
this is extremely simplified example of code i am working on:
yourtext$ = Input("Enter your text here: ")
yourtext$ = Replace(yourtext$,"a","@")
yourtext$ = Replace(yourtext$,"b","|3")

i am making a translator in blitz basic that translates your text into l33t (internet slang) and i don't know how to program it so it can change "c" into "(", AND "cker" into "xor", if that's even possible. (example: "hacker" into "haxor", which is another oddity of l33t). if it is possible will someone please tell me how to do it?

------------------
"Oh! Gravity. Why can't we seem to keep it together? Sons of my enemies, why can't we seem to keep it together?" - switchfoot

[This message has been edited by leet hacker (edited August 06, 2007).]

[This message has been edited by leet hacker (edited August 06, 2007).]

samw3

Member

Posts: 542
From: Toccoa, GA, USA
Registered: 08-15-2006
Try changing "cker" to "xor" first. Then change the "c"s to "(".

------------------
Sam Washburn

Check out my CCN SpeedGame 2 Blog

leet hacker

Member

Posts: 118
From: Hobbiton, Shire, Middle-Earth
Registered: 07-30-2007
thank you very much! it works very well now.

------------------
"Oh! Gravity. Why can't we seem to keep it together? Sons of my enemies, why can't we seem to keep it together?" - switchfoot