正则表达式
摘要:
元字符描述.点匹配任何单个字符。例如正则表达式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-10-27 15:55 Terry@ 阅读(313) 评论(0) 推荐(1) 编辑