I have a large list of javascript regular expressions and want to use them with Python.
My question is, how much both regex types differ and if I could simply use pythons re
.
I was able to compile all expressions in the list without error, but does this guarantee that the expressions match the same strings in any case?
If this doesn't work in general, what would be a reliable way to automatically translate the javascript regex to python regex?