When you are parsing through text, it might be useful to isolate encapsulations of strings. For example, everything appearing between an opening bracket ([) and a closing bracket (]). But what happens if you have nested brackets? This method will grab everything between a set of brackets even if they have nested brackets.
` it produces well-formed encapsulations at the outermost level
` it also assumes that the opening tag is different from the closing tag
` get the first occurance of the opening encapsulation
Until (($depth=0) | ($cursor>Length($parse)))
Note: If both your open and close arguments are the same, the method will not be able to distinguish the two apart. When calculating depth, the depth will be incremented but never decremented. The string returned will then be everything to the right of the first occurance of the open tag.