<< Back to the snippet list
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.
apostrophes
replace
javascript
regex