Topic: To sort out all variants of the regular expression

Hello. We admit, we have the certain regular expression describing a finite amount of fitting substitutions. Whether there is a standard function (in standard or  implementations) which would help to "bypass" all admissible variants? Well also would produce an error if variants it is not restricted or unreal much.