摘要
正则表达式是按照一定的语法组成的文字模式,它由普通字符及约定的特殊字符组成,描述了待搜索字符串的匹配模式。规模较大的网络系统,往往存在很多匹配问题,解决不好会影响网络系统的功能和效率。通过分析研究了匹配模式及正则表达式在脚本语言中的使用方法,在此基础上结合网络教学系统的开发,研究了正则表达式在网络教学系统中的数据验证及信息处理上的应用,提出了数据合理性验证的基本方法及数据处理方法,给出了用户名、密码、邮件地址、URL、电话号码等常用的匹配模式。
The regular expression: is defers to the certain grammar composition the writing pattern, it was composed by the ordinary character and the agreement special character, describes has treated the search character string the match pattern. The scale bigger network system, often has the very many matches problem, solves is not good can affect the network system the function and the efficiency. Has studied the match pattern and the regular expression through the analysis in the script language application method, unifies the network teaching system in this foundation the development, has studied the regular expression in the network teaching system data confirmation and the information processing application, proposed the data rationality examines the essential method and the data processing method, has produced the user name, the pass word, the mail address, URL, the telephone number and so on the commonly used match pattern.
出处
《北京印刷学院学报》
2005年第4期18-21,共4页
Journal of Beijing Institute of Graphic Communication
关键词
网络教学系统
正则表达式
数据验证
匹配模式
network instruction system
regular expression
data check
match pattern