in reply to capturing separately

ada,

Please reformat your original post using code tags. Refer to Writeup Formatting Tips. If you have questions regarding posting, please ask.

As you gather data from your regex capture, you can use push to build up an array. What do you want your hash to look like, i.e., what are the keys and what are the values? Perhaps if you provided more sample input data, output data and code, that would help.