Results 1 to 7 of 7

Thread: [resolved]replacing words?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2004
    Posts
    294

    [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
  •  



Click Here to Expand Forum to Full Width