No, it isn't.  I wasn't able to convert the python RegEx to a javascript one.  (Not experienced enough in python).

This regexp allows urls like:
http://mozilla.org/
http://input.mozilla.org/
mozilla.org
input.mozilla.org

(I could get more detailed).