locked
Simple replace of '=Yes' not working RRS feed

  • Question

  • I am trying to do a simple replace of a string. myString.replace(/=Yes/, '=True');

    This does not work for some reason.


    • Edited by dharric72 Wednesday, May 16, 2012 8:03 PM
    Wednesday, May 16, 2012 8:03 PM

Answers

  • I was missing g, /=Yes/g.
    • Marked as answer by dharric72 Wednesday, May 16, 2012 8:15 PM
    Wednesday, May 16, 2012 8:15 PM