文章分类 -  Other

关于正则表达式的总结
摘要:元字符描述.点 匹配任何单个字符。例如正则表达式r.t匹配这些字符串:rat、rut、r t,但是不匹配root。$匹配行结束符。例如正则表达式weasel$ 能够匹配字符串"He's a weasel"的末尾 但是不能匹配字符串"They are a bunch of weasels."^匹配一行的开始。例如正则表达式^When in能够匹配字符串"When in the course of human events"的开始,但是不能匹配"What and When in the"*匹配0或多个正好在它之 阅读全文
posted @ 2011-03-17 11:29 灰色地帶 阅读(92) 评论(0) 推荐(1)