Matching of regexps with ^ could be much faster try /^bar/ on a really long string and watch Safari go off the deep end... It should immediately be able to detect that ^bar doesn't match.
Silly bugzilla. *** This bug has been marked as a duplicate of 18086 ***