If the title is not explainatory enough I will try to explain with actual examples.
If we have the examples:
_(something)
then the result would be
something
Next example:
_(something (else))
the result would be
something (else)
And the last example would be
_(something) _(else) ${_(yes)}
and the result would be
something else yes
I have the following regex atm: /_\(([^)\\/]+)\)/g
but this regex does not include the last
parenthesis in the second example so currently it becomes:
something (else
I would appreciate if someone have any fix for this.
Thanks in advance.