Are Python and JavaScript regular expression syntax identical?
If not, then:
There is a comparison table here:
Regex Flavor Comparison