I have a string:
123 + FOO1[ccc + e_FOO1 + ddd + FOO2[b_FOO2]] = 123
Now, I need to check that the FOO1 shows along with the e_. That is, there can't be situation like this:
123 + FOO1[ccc + e_FOK1 ...]
My simple question is how can I tell Perl to catch the FOO1 word for example ?
I thought to search between 2 characters: " " and "["
and then check if it is written correctly after " e_" between the "[..]" for example.
HOW CAN I DO IT RECURSIVELY ?