GetBetween function

function GetBetween(Const PairBegin, PairEnd, Value: string): string;

Unit
synautil

Description
Get string between PairBegin and PairEnd. This function respect nesting

For example:

Value is: 'Hi! (hello(yes!))'
pairbegin is: '('
pairend is: ')'
In this case result is: 'hello(yes!)'