Building Regex Alternations Dynamically shows how to do this.
In reply to Re: Combining multiple =~ s/ by haukex in thread Combining multiple =~ s/ by hennesse