0
Text:
var texto = "if(true) { {{palavra1}} + {{palavra2}}; }"
The only characters I know will ever exist are {{
and }}
.
I did so, but this way I only get the first word:
Regex r = new Regex(@"\{\{[^\}]+?\}\}");
Match m = r.Match(texto);
Console.Write(m);
// Resultado: {{palavra1}}
What I desire:
{{palavra1}}
{{palavra2}}
as I said, I managed to catch, the problem is to get all that you have in the string
– LeoHenrique
I took the
{{palavra1}}
only, need the{{palavra2}}
also and how many more there are in the string– LeoHenrique
@danieltakeshi does not fit the problem. The problem is not in the expression, it is in how it is being manipulated in the object.
– CypherPotato