deejay_totoro
Registered User.
- Local time
- Today, 17:18
- Joined
- May 29, 2003
- Messages
- 169
Hello,
It would be great if someone could help me with writing a function.
The function will parse a string which can have any number of words, ie: "This is a string with spaces between words".
If a certain rule is met, ie: "wor" or "str" or "ith" then the function will subsitiute those letters with something else. For example:
"wor" becomes "WoR"
"str" becomes "S'TR"
"ith" becomes "ItH"
"This is a string with spaces between words" would become "This is a S'TRing wItH spaces between WoRds".
It would be great if these changes could be held in a lookup table so it would be easy to add new words or letters to search for.
Cheers!
It would be great if someone could help me with writing a function.
The function will parse a string which can have any number of words, ie: "This is a string with spaces between words".
If a certain rule is met, ie: "wor" or "str" or "ith" then the function will subsitiute those letters with something else. For example:
"wor" becomes "WoR"
"str" becomes "S'TR"
"ith" becomes "ItH"
"This is a string with spaces between words" would become "This is a S'TRing wItH spaces between WoRds".
It would be great if these changes could be held in a lookup table so it would be easy to add new words or letters to search for.
Cheers!