There’s probably a better way to do this using regexes, but here’s what I came up with:
a.split(/[^(]*\(([^)]+)\)[^(]*/).reject(&:empty?)
0
solved Get array of matching strings
There’s probably a better way to do this using regexes, but here’s what I came up with:
a.split(/[^(]*\(([^)]+)\)[^(]*/).reject(&:empty?)
0
solved Get array of matching strings