Are Python and JavaScript regular expression syntax identical?
If not, then:
http://www.regular-expressions.info/javascript.html vs http://www.regular-expressions.info/python.html