What does the ?! mean in the following regex expression?
?!
new RegExp(\'http:\\/\\/(?!\' + location.hostname + \')\')
It's a negative lookahead, you can check here for more information.