String replacing... and help!

Results 1 to 2 of 2

Thread: String replacing... and help!

  1. #1
    Join Date
    Dec 1969

    Default String replacing... and help!

    e.g. I use this code and I was wondering if theres a way to make it only process those "X("s that are NOT connected to any other word or whatnot, e.g. only X( if its seperate, not if itsX(<BR><BR>strInputComments = Replace(strInputComments, "X(", "&#060;img src=&#039;faces/smiley7.gif&#039;&#062;")<BR><BR>Is that even possible? or will I be forced to stick a space between it on both sides and/or just resort to using :angry: etc..

  2. #2
    Join Date
    Dec 1969

    Default RE: String replacing... and help!

    Try putting a space in the replace like this<BR><BR>strInputComments = Replace(strInputComments, " X(", "&#060;img src=&#039;faces/smiley7.gif&#039;&#062;") <BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts