Make union of regexps at compile time