摘要
正则表达式是表达复杂检索条件的有力工具.但是现有的正则表达式表达规则仍有不少不足之处,例如不能用简单的形式表达"任何一种水果"这样的意思.提出一种基于集合扩展的架构,使得可以在正则表达式中包含用户自定义集合,用以表示"此处可以是集合中的任一成员"这样的含义.提出的这种集合不仅是用户自定义的,而且是动态的、按名称访问的.
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.
出处
《计算机系统应用》
2012年第10期201-203,共3页
Computer Systems & Applications
关键词
正则表达式
集合扩展
动态扩展
regular expression
set-based extension
dynamic extension