First of all, I am not the one who is writing the regexps, so I can't just rewrite them. I am pulling in several Javascript regexps, and trying to parse them, but there seems to be some difference between them. Testing the example regexp on W3Schools, Javascript shows this:
var str="Visit W3Schools";
var patt1=/w3schools/i;
alert(str.match(patt1))
which alerts "W3Schools". However, in Python, I get:
import re
str="Visit W3Schools"
patt1=re.compile(r"/w3schools/i")
print patt1.match(str)
which prints None.
Is there some library I can use to convert the Javascript regexps to Python ones?
.matchvs..search.