Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Using s As New uCalc.String("root [child] end")
         
         '// Get a live view of the block including the brackets
         Dim view = s.BetweenInclusive("'['", "']'")
         
         Console.WriteLine($"Initial parent string: {s}")
         Console.WriteLine($"Initial view: {view}")
         
         '// Modify the view. The change will propagate to the parent.
         view.Replace("child", "MODIFIED")
         
         Console.WriteLine($"Final parent string: {s}")
      End Using
   End Sub
End Module