Abstract:Regular expression is a powerful tool to express a complex retrieve condition. However, some lacks that still exist in the current regular expression. For example, we can’t express such a meaning like “any one kind of fruit”in a simple form. In this paper, an extension based on set which can be defined dynamic by user is proposed. By this extension, this paper can express the meaning “here can be any member of the set” simply in a regular expression.