What I found out using this
"\\${(.*?)\\}
.
So I tried:
new Regex(@"\\$\\${(.*?)\\}");
But this seems not to work, whats the problem here ?
What I found out using this
"\\${(.*?)\\}
.
So I tried:
new Regex(@"\\$\\${(.*?)\\}");
But this seems not to work, whats the problem here ?
I would use new Regex(@"\${(.*?)}");
Let's analyze yours:
(@"\\$\\${(.*?)\\}");
^^^^^^ ^^^
|||||| |||-- Your don't need to double your slashes in a literal string.
\ | |
\ | |
\|--------|-- You have 2 "$" and you just want one
|
|-- You don't need to escape "{" since it doesn't enclose digits
and can't be interpreted as a length attribute.