ASfdsa33 ASfdsa33 - 2 months ago 8
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

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