/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ include 'timetest.as' var size = 700; var str; for (var i=0; i < size; i++) str += "(123) 456-7890 asdf asdf asdf (123) 456-7890 asdf asdf asdf asdf asdf asdf (123) 456-7890 blah blah blah () blah"; var regex = new RegExp(/^\(\d{3}\) \d{3}-\d{4}$/); function replace(loops) { for (var i =0; i