首页 | 本学科首页   官方微博 | 高级检索  
     检索      

正则表达式匹配IP地址的实践与研究
引用本文:孙雷.正则表达式匹配IP地址的实践与研究[J].科技情报开发与经济,2005,15(8):230-231.
作者姓名:孙雷
作者单位:宁波大学图书馆,浙江宁波,315211
摘    要:正则表达式语言是世界上最流行的字符串匹配语言,它被许多编程语言或工具所支持。运用正则表达式匹配IP地址,比较了一些模式的写法,分析了某些模式在不同正则表达式引擎下的差异,得出了一个精确、通用的模式。

关 键 词:正则表达式  IP地址  Perl
文章编号:1005-6033(2005)08-0230-02
修稿时间:2005年3月27日

The Practice of and Research on Applying Regular Expression to Match IP Address
SUN Lei.The Practice of and Research on Applying Regular Expression to Match IP Address[J].Sci-Tech Information Development & Economy,2005,15(8):230-231.
Authors:SUN Lei
Abstract:Regular expression is the most popular language in the world, which is used to match character stream and supported by many programming languages or tools. This paper uses regular expression to match IP address, compares the writing sty les of some models, and analyzes on the differences of some models under differe nt regular expression engines, and gets an accurate and universal model.
Keywords:regular expression  IP address  Perl  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号