Use a RegEx debugger to see where the match fail
Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.[
^]
Paste your RegEx.
Paste your data to match.
Use the cursor to see where it fail.
When you have a valid RegEx, use Code Snipset button on top.
You will see the problem is not what you think.
perlre - perldoc.perl.org[
^]
[Update]
Nota: There is more than 1 RegEx dialect, JavaScript regEx is not C# RegEx, difference is in details.
Find which dialect is used in C# and find differences.
By the way JavaScript and C# strings do not handle special chars the same way.