Which regex engine is used?
Your browser's JavaScript engine. The syntax largely matches .NET's Regex; lookbehind and named groups ((?<name>...)) are supported too.
What do the flags do?
g finds all matches, i ignores case, m makes ^/$ work per line and s lets the dot match line breaks.