using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.Text = "
My paragraph
"; // 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 // 0 10 20 30 40 50 60 70 80 90 // ^ ^ ^ ^ ^ // Carrets (^) represent starting and ending point of the matches t.Pattern("<{tag}>{text}{tag}>"); t.Pattern("{text}"); t.Pattern("