dominoExperts.com - Powered by Domino 8.5.2 Domino Accelerator Pack
- Reduce the number of HTTP requests
Lotus Triple Search DominoExperts + Blogs + R8 forum
dominoExperts.com -> Script vault -> JavaScript

 replaceSubstring in javascript


Tomas NielsenPost date: 2007-01-12 20:22

This is one of my favourite one liners. All domino developers know the syntax from the @-formula language so why not have it in Java Script.

function replaceSubstring(exp, str, wit) { return exp.split(str).join(wit); }




RSS feed
Subscribe to Forum

Share this page

Top posters
Tomas Nielsen212
Joacim Boive27
Fredrik Stöckel27
Danne14
Niklas Waller13
Kenneth Haggman11
Bryan Kuhn10
Daniel Lehtihet9
Jonas Israelsson8
dm997