How can I match one or more expressions in brackets appearing at the end of a line?
Input:
'hello (i) (m:foo)'
Required Conclusion:
['i', 'm:foo']
Designed for python script. Paren markers cannot appear inside each other ( no nesting ), and brackets can be separated by spaces.
This is more complicated than it might seem at first glance, at least so it seems to me.
source
share