ASfdsa33 ASfdsa33 - 1 year ago 66
C# Question

Looking for an regular expression for "${sometext}"

What I found out using this

"\\${(.*?)\\}
.

So I tried:
new Regex(@"\\$\\${(.*?)\\}");


But this seems not to work, whats the problem here ?

Answer Source

I would use new Regex(@"\${(.*?)}");