I've got a string like this :
((VIP) OU (CHALAND)) ET ((VIP) OU (CHALAND))
I must extract the word ET which is in 2 finals brackets.
After this, i will apply a conditional test on result.
The hardest part is that the text is random width with sometimes many brackets and I haven't clue to how do it in Delphi language.
More examples:
(((VIP) ET (CHALAND)) ET ((VIP) OU (CHALAND))) OU (VIP)
Result: OU
((((VIP) ET (CHALAND)) ET ((VIP) OU (CHALAND))) OU (VIP)) ET (((VIP) ET (CHALAND)) ET ((VIP) OU (CHALAND)))
Result: ET