(If you're constructing the regexp programmatically, take care to quotemeta the parts.)
In reply to Re: Alternative matches by gaal in thread Alternative matches by kiat