Snippets tagged by "Replace"

  • Replace apostophes in javascript using RegEx

    The other day I needed to replace some apostrophes in javascript. We can use standard string.replace("'", "");, however this will replace only the first occurrence, therefore a regex is the best solution.
    Wed, Dec 30 2009 11:00 AM by Sonu Kapoor