Global string replacement
This test case compares their
replaceAll method with a simple
.replace() using the
The article had this to say about
It performs almost as well as the native function (the trade off is two extra function calls against a regex match).
Let’s put it to the test!
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Compare results of other browsers
You can edit these tests or add even more tests to this page by appending
/edit to the URL. Here’s a list of current revisions for this page: