Both in Actionscript3 and Javascript these statements give the same result:
/\\S/.test(null) => true
/null/.test(null) => true
/m/.test(null) =>
null is an object, and when testing against objects (non-string), its first converted to string, then its giving you that result.
You could try with /Number/.test(Number) or /String/.test(String), which would return true too.
Probably String(null) is being called, which is 'null'
String(Number) will give
function Number() {
[native code]
}
and /function Number/.test(Number) return true too