in reply to A regexp to parse nested brackets containing strings

Regular expressions strictly cannot parse recursively. A recursive descent or state machine parser (each of which might of course use regular expressions) are what is needed.
  • Comment on Re: A regexp to parse nested brackets containing strings