Thanks! It works exactly as I wanted to...
In reply to Re^2: capture value from two patterns by vitoco in thread capture value from two patterns by vitoco