replace special characters

Results 1 to 2 of 2

Thread: replace special characters

  1. #1
    Join Date
    Dec 1969

    Default replace special characters

    I am trying to replace a "special character" string in a text file with another special character string, and am having difficulties. I am using regExp.replace annd can locate the string I want to replace but cannot replace it with another special character string. I am locating "
    " and would like to replace it with "
    "<BR><BR>Any help is welcome

  2. #2
    Join Date
    Dec 1969

    Default RE: replace special characters

    Hope this may help.<BR>I have a JavaScript variable named usersearch and I want to replace &#039; with " this is what I use<BR><BR>userSearch = userSearch.replace(/&#039;/g,&#039;"&#039;);<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