IList SplitTextIntoBlocks (string text)
{
var ret = new List <TextBlock> ();
ret.Add (new TextBlock (TextBlockType.Verbatim, text));
ret = FindRegexBlocks (clientCommentRegex, null, null, ret, TextBlockType.Comment, false);
ret = FindRegexBlocks (runatServer, endOfTag, CheckTagEndNeeded, ret, TextBlockType.Tag, false);
ret = FindRegexBlocks (expressionRegex, null, null, ret, TextBlockType.Expression, false);
return ret;
}