In this code
for(var i = 0 -> 100)
:{
say(i)
for(var i2 = 0 -> 20)
:{
:}
:}
Im trying to get all the text including the last :}
But my C# code always returns
for(var i = 0 -> 100)
:{
say(i)
for(var i2 = 0 -> 20)
:{
:}
My C# code is
Match mm = Regex.Match(loopcode, ":{.+?:}", RegexOptions.Singleline);
string code = mm.Value;
Can anyone help?
This post has been edited by Amrykid: 04 October 2009 - 11:53 AM

New Topic/Question
Reply




MultiQuote





|