The last time I checked, inline regexps were noticably slower than predefined ones. My guess is that V8 compiled them on every run. But that was half a year ago, and a lot might have changed.