example

Posted by editor

There are hundreds of examples of how to use the Javascript String Replace function. However these are often very simple examples and do not fully show the potential power of this easy to use method. So when I came across a more complex real-life problem that required the use of javascript string replace - I thought it might be useful to others to share it.