in reply to capturing separately

Ada,

In order to propose a solution that yields your proposed output, we'll need to know what your input is. At this point, it's hard to know whether a regex or a split command is a better choice.