Replacement of entry plusa by regular expression



  • Regular expression and function replace by javascript, replace all benefits + I need a line. I've tried, he's either replacing one plus or not, that's, interpreting it as a special symbol.



  • /users/2186/%D0%B0%D0%BD%D0%B4%D1%80%D0%B5%D0%B9-%D0%B0%D1%80%D1%88%D0%B8%D0%BD%D0%BE%D0%B2 rights: symbols of special importance in regular expressions are screened. To replace all entry, you need to flag g♪ As a result

    alert("1 + 2 + 3 = ?".replace(/\+/g, "plus"));
    

    I'll take the line out.

    1 plus 2 plus 3 = ?




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2