|
-
Nov 15th, 2005, 01:51 AM
#1
Thread Starter
Hyperactive Member
[resolved]replacing words?
i have a string called strOne = "hello and goodbye andONe and Hey"
i would like to replace all the "and" words with "hi"
so the new string would be strOne = "hello hi goodbye andONe hi Hey"
i tried strOne = replace(strOne, "and", "hi") but it replaces all and anything that contains "and" which is not what i want. What i want is to replace the word "and". how would i do that?
Last edited by Whatupdoc; Nov 15th, 2005 at 07:39 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|