Regular Expressions, depending on the V8 or Nitro engine version, are implemented to return either 'object' or 'function' http://bonsaiden.github.com/JavaScript-Garden/#types.typeof
Recent versions of V8 and Nitro return 'object' now, but presumably, there are many people still running browsers that return 'function'.
Seems like it relies on whether or not the RegExp is callable, but that the 2 engines removed 'function' as they ceased supporting callable RegExes. http://code.google.com/p/v8/issues/detail?id=617