Caching vs RegExp Literal
Does storing regular expressions in a variable help?
<script>var expression = /World/;</script>
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: