This document demonstrates the use of the collection variable by creating two workflows that use a collection variable.
Workflow A - Regular Expression - no mention of where to store the result in.