https://www.regular-expressions.info/dot.html
.NET regexes are often not compatible with Python, Perl, etc. due to greediness and end-of-line differences. Calibre uses the Python engine for regular expressions.
The article has some interesting tips.
DaltonST